Firing projectile in Unity
This is a project that shows one approach to firing physics based projectiles at targets, both moving and static.
This project was built using Unity 2017.1.1f1, but should work fine with most other versions
Unity versions can be found here
Copy the NumbGoat/ProjectileSystems folder to your unity project.
Read the methods in TrajectoryHelper to get started.
See NumbGoat/Scripts/ProjectileTestFire.cs for examples.
Sarah Dobie (dobiewan)
Peer reviewing code, branch maintainence, sanity checker.
Timothy Gray (TAGray)
Copying scripts from various locations, creating test scene, testing the scripts.
Steven Morrison (ContagionNZ)
Projectile models, other visual assets.
Provided first draft of the code.
- Y of projectile does not work correctly, for slow speeds and target above shooter.
v1.0.1 - Refactored to allow easy copying of code to another project. - Added IHittable v1.0.0 - Working code - Test scene with projectiles hitting a number of test targets.
Apache License 2.0 See LICENCE file.