Something that surely will be quite simple for some of you, but just impossible to solve for me.
I have moving vehicles. The advance at a certain speed, accelerate at a certain rate and deccelerate at another rate.
My problem is to find a formula to get the stopping distance of such vehicles from its max speed and decceleration.
The speed "s" is given in world unit per seconds (us).
The decceleration "d" is given in "us" lost each second while deccelerating.
For example, a vehicle moving at 6us and deccelerating by 2us per seconds will take... 3 seconds to fully stop.
What would be the formula to give me the number of world unit needed to fully stop from full speed to 0, in function of "s" and "d"?