Planning ballistic trajectories with air resistance in Unity3D

An open-sourced Unity3D library & demo that shows how to plan and move a ballistic projectile targeting a (moving) target under the influence of air resistance and (constant) wind. Trajectory plans can be calculated to hit a specific target with: a given initial speed, a given flight time, minimum initial speed/energy, or (experimentally) given the constraint to shoot over other obstacles in the scene, and more. To do so, it doesn’t simulate the trajectory directly using Unity’s physics simulation but rather closely approximates it analytically. Consequently, it’s fast, completely deterministic, exact and frame-rate independent.The code may be used freely for commercial and non-commercial projects. A web player version of the demo can be found there as well.

Click here to visit link (


Commenting will be coming soon. In the meantime, feel free to create a discussion topic on the forums.