Customizable Missile Launcher
Project Goal
I wanted to make a missile launcher turret that rotates on two axes and has some behavior that can be changed in the Inspector without changing logic.
​
Work Summary
-
Created a missile that moves on its own, and will track a target if told to. It moves at a different speed, and has a different launch behavior depending on its dumbFire bool.
-
The launcher itself rotates on yaw and pitch, with each being attached to specific objects to give a believable hinged movement
-
Scripted logic to change how the launcher fires based on the number of missile tubes, the rate of fire, the type of missile behavior, rotation speed, etc.
​
Outcome
The launcher works pretty much exactly how I hoped it would. It still has some weird little things that it does, like pitching upwards if the target is too far left or right. When I was working to get the independent rotations of the objects set up, I ran into a lot of trouble getting both pitch and yaw to work together. Either could work on their own, but they couldn't rotate together. It turned out to be a minor issue of telling the pitch to use the wrong relative rotation. I am particularly pleased with how the smart missiles look when they launch.