Quote Originally Posted by grudzio
But to anwser your questions. This oscillating behaviour does it happen when you are almost at the destination? you use code to detect if you have reached the destination like this:

Code:
if (Abs(x-destx) < EPS) and (y-desty) < EPS) then
StopMoving
else
KeepMoving;

The oscillations will appear if the EPS constant is to small.
I see, yes. Well I think thats a great idea. Ill make it accelerate when further away than EPS and decelerate when inside that area. Thanks for the idea!

Quote Originally Posted by grudzio
As for asymptotic approach try this
Code:
d &#58;= sqrt&#40;pos*pos-dest*dest&#41;; //d - distance to destination
pos &#58;= pos + 0.5*d*dt; //dt - timestep
Hope it will help you.
How did I not think about that! lol! That's more an exponential decay but it will do just fine! Thank you.