Suppose we have a rigid body (or even a collection of point masses connected via rigid rods). Suppose this body is floating in space.

Suppose we apply a force on this body over a duration of time and in addition suppose as the body accelerates/changes position, the force stays the same with respect to the body.

How would one calculate the final velocity and position of the body numerically?