Projectile Script

A projectile script is attached to a prefab that will travel through the air toward a target such as fireballs, arrows, tornadoes, etc.

Properties

Dependencies

  • A Collider marked as a trigger, and a Rigidbody marked as Kinematic are both required on the same GameObject in order for the projectile to detect a collission with a target.

  • An Audio Source is required to play a sound while travelling toward a target.

Last updated