Move a body from point A to point B in T time

Hello there!

I want to move a body from point A to point B by applying a constant force F on each frame. The problem is that I want the body to arrive at point B in exactly T time. So, what I need is a formula to calculate that constant force F based on the body's weight, point A, point B, time T and the number of frames per second. I will be very grateful if someone can enlighten me. 🙂

Thank you in advance!
The formula you need is x(t) = x(0) + v(0)*t + .5 (F/m) * t^2

Solving for F, and writing the equation for y, too:

Fx = (x(t) - x(0) - vx(0)*t) * 2m/t^2
Fy = (y(t) - y(0) - vy(0)*t) * 2m/t^2

I think...might want to check my math, though.
Thanks, that really helped! 🙂

Original thread: https://box2d.org/forum/viewtopic.php?t=5751