Monday, July 4, 2016

orbit - Avoiding orbiting in pursuit steering behavior



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.




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...