Avoiding orbiting in pursuit steering behavior

Posted by bobobobo on Game Development See other posts from Game Development or by bobobobo
Published on 2012-12-14T20:23:26Z Indexed on 2012/12/14 23:23 UTC
Read the original article Hit count: 258

Filed under:
|
|

I have a missile that does pursuit behavior to track (and try and impact) its (stationary) target.

It works fine as long as you are not strafing when you launch the missile. If you are strafing, the missile tends to orbit its target.

enter image description here

I fixed this by accelerating tangentially to the target first, killing the tangential component of the velocity first, then beelining for the target.

enter image description here

So I accelerate in -vT until vT is nearly 0. Then accelerate in the direction of vN.

While that works, I'm looking for a more elegant solution where the missile is able to impact the target without explicitly killing the tangential component first.

© Game Development or respective owner

Related posts about steering-behaviors

Related posts about orbit