I'm creating a video game set in space in which spaceships travelling between places accelerate until they hit a maximum velocity. They then travel at that velocity until a time when they need to start decelerating so as to arrive at their destination and not overshoot. There is no relativity or friction or anything else 'fancy' involved
For the algorithm I'm writing to do this, I need to know
a) the time it will take a ship to reach the half way point in its journey (assuming it continues to accelerate forever), and
b) the time it will take to reach maximum velocity, and
c) the distance travelled at time t (assuming continuous acceleration).
I can then use that to tell the ship at what time to start decelerating, depending on how far the whole journey is.
However, to accelerate the ships, I multiply their current velocity by 1.5 every second (to decelerate, I divide by 1.5). i.e. v(t) = v(t-1) * 1.5
I can also assume Initial velocity (velocity at time 0) is a constant and always positive
If anyone can point me in the right direction as to what formula to use (or even better, the pseudo-code to do it), I'd be most appreciative