Vector2 Acceleration Maths

Apr 27 2009 6:12 AM
Hi, I am writing a game in which an object at a PointF travelling at a current velocity (Vector2) is trying to reach a destination PointF (which can change between movement steps) At each step of movement I need to decide the acceleration vector that will get to the point the fastest. So the result should be the ship adjusts its current velocity so that it always moves towards the target point at stead acceleration unless doing so would mean there isn't enough time to slow down before reaching it in which case it should begin decelerating. This has been doing my head in a bit and the code I have at the moment seems to just make the ships orbit the point: How do I post code on this forum?