I am going to try hard to describe this simple ;-)
I currently have a moving objects that are basically moved using simple vectors. So to move left is (-1,0) and down is (0,-1) for example. This works very will with a joystick input.
However, I am currently have some issues with my pathing. The pathing itself works fine. But the issue is that I am not able to modify the vehicle's vectors effectively using my array of path objects.
I am basically having an issue with overshoot. So the vehicle is heading from (90,100) to (100,110) for instance. And the vector is (1,1) (diagonal to upper right).
The problem is that the speed of the object makes my vehicle move to point (105,115). So it basically overshoots but doesn't hit dead on. So that means that the next cycle makes it try to move backwards to compensate, and it missed again etc.
So what is the best way to have the vehicle evaluate whether it has passed a point? I need to be able to decide when it can move on to the next step in my pathing list.