A maths question



Not exactly related to graphics, but as graphics require good
mathematics understanding I thought I would see if someone here may be
able to help.

Here is description of my problem. An object is moving in a straight
line. The object can thrust to speed up and thrust in reverse to
slowdown.

The object is travelling between two known points, A & B, distance d
apart.

+----------------------+
A d B

The basic movement is as follows

Ft = thrust
A = acceleration
Vi = Initial velocity
Vf = final velocity
Cf = friction constant
Ff = friction force
F = force on object

so...

Ff = - Vi * Cf
F = Ft + Ff = Ft - Vi * Cf
A = F / Mass
Vf = Vi + A * timeStep

My question is :
If I know my initial velocity, distance left to go and final velocity,
how do I calculate the thrust ?

Thanks in advance,

Sam

.



Relevant Pages