Making a Homing Projectile 2: Targeting Behavior

Jared Amlin
Level Up Coding

--

In part two of the homing projectile duo of articles, I get into the meat and potatoes of the homing behavior. My objective for this article is to have the Homing Tusk target the closest enemy. I also want to have it find a new target if the current target gets destroyed, and resume normal straight ahead movement should no targets remain.

--

--

I am an artist and musician, that is currently diving headfirst into game development with C# and Unity3D.