A more involved example, but a great site is red3d's steering movements.
To do heat seeking missiles, you use the seek behavior.
http://www.red3d.com/cwr/steer/

On Fri, Jul 22, 2011 at 11:45 AM, Joe Ranalli <jrana...@gmail.com> wrote:

> Homing missile is by far the easiest thing to code.  Every clock tick, find
> the vector between the bullet and the target, move the bullet in that
> direction according to its velocity.  As long as the bullet speed is fast
> relative to the target, it will eventually hit it.




-- 
Jake

Reply via email to