To aim the turrets I created a function that takes the plane's current velocity and aims ahead along its predicted path. I also measure the distance between the plane and turret to set the projectiles' fuse.
The projectiles explode at preset times, and a sphere trace is used to check for overlap with the plane. Then, sounds and VFX are played to give context to the anti-aircraft fire.Â