I'm trying to simulate the motion of an object near a force field, given an initial velocity $v_0$.
I couldn't find anything that fits what I'm trying to achieve.
I have a point of mass $m_1$ in the origin of the Cartesian plane (0.0, 0.0) (blue in the image).
The coordinate system is the Cartesian one.
The position of $M_1$ shouldn't change.
I figured out this:
- The attraction force between the blue body and the red body is F defined like this: $F =G{m_0m_1}/{r^2}$ by Newton's theory.
- The resulting position of the red body should be the sum of $v_0$ and a vector representing the component of the motion directed towards the center.
But I didn't get further than that. How could I calculate the position of the body at time t?