#4118 - NovusAmor - Wed Mar 19, 2003 5:36 pm
Does anyone know of a good homing (like a targeting missile) algorithm that runs fast in 2d? I'm currently using a vector/normalized solution but it isn't as smooth as I'd like. Also I'm not looking for:
if(objx > targetx) objx--;
else if(objx < targetx) objx++;
That is for newbies that don't know how to code.
Thanks for any help.
_________________
Robert
Senior Programmer
NeoPong Software, Inc
www.neopong.com
if(objx > targetx) objx--;
else if(objx < targetx) objx++;
That is for newbies that don't know how to code.
Thanks for any help.
_________________
Robert
Senior Programmer
NeoPong Software, Inc
www.neopong.com