Advertisement

homing algorithm

Started by June 21, 2003 03:17 PM
3 comments, last by newbie007 21 years, 8 months ago
Does anyone care to share any clues regarding a decently simple yet realistic homing algorithm (2D or 3D)?
2D or 3D vectors are good for homing algorithms. if your object is moving on a vector and is located somewhere relative to the object that it is homing in on, all you would have to do is modify the current vector by some magnitude and direction that the homing object is moving on.

Hope this helps.
-Boblin
Advertisement
I use objects that have a aceleration from which their velocity and posistion are calculated every frame. I just have the aceleration point towards the object. With the innital velocity it will curve towards the object.

This can be adjusted so it will circle the target slowly moving in, or jsut curves towards it.
Read the article at http://www.red3d.com/cwr/steer/

John B
The best thing about the internet is the way people with no experience or qualifications can pretend to be completely superior to other people who have no experience or qualifications.
Thanks, y''all

This topic is closed to new replies.

Advertisement