With the 2D Homing Missiles asset, a special proportional controller algorithm is used to move missiles intelligently, instructing missiles to reach their target, rather than just move directly to their targets.
For more detail this asset from the Unity Asset Store: Click Here
This is a paid asset, but now you can download the “2D Homing Missiles” for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
2D Homing Missiles v1.8.0
Now with Unity 2020 and 2021 LTS support! The 2D Homing Missiles asset for Unity gives you realistically moving missiles to use in your games and prototypes along with smoke trails.
WebGL demo
Normally, missiles should never move directly towards their targets, this is not how they work in real life. Too many times we see simple missile follow scripts being used to allow missiles to track targets. The 2D Homing Missiles asset does things the right way in terms of realistic missile movement.
With the 2D Homing Missiles asset, a special proportional controller algorithm is used to move missiles intelligently, instructing missiles to reach their target, rather than just move directly to their targets. A desired state is constantly fed to each missile’s controller, as their targets move, steering the missiles in the right direction in order for them to reach their targets with realistic flight paths. This results in super realistic (and entertaining to watch) missile patterns.
Package contents
1. Proportional constant (PID controller) homing missile script + supporting scripts
2. MissileLaunchScript script with custom inspector editor components for single / multiple missile launcher node configuration and pattern randomness configuration, as well as launch control options with tag targetting, closest target options, and auto-fire mode
3. ObjectPoolManager script to aid in the usage of optional object pooling for missiles
4. Missile sprites and prefabs
5. Smoke trails for missiles
6. Demo scenes to demonstrate dynamic instantiation of new missiles, as well as some custom launch patterns / multiple missile launches. Includes some extra helper / demo scripts too
7. Free explosion audio effect and basic explosion prefabs
8. README file with detailed usage and documentation