Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
A library that provides tools to work with, and calculate, 3D ballistic trajectories. It's a collection of helpers that are designed to cover most use-cases requiring pre-calculations of velocity, time, position or collisions.
Trajectory Lib
This is a utility library that provides tools to work with, and calculate, 3D ballistic trajectories. It's a collection of helpers that are designed to cover most use-cases requiring pre-calculations of velocity, time, position or collisions.
Credits
Much of the code is based on the trajectory solving logic of Forrest Smith's C# library (0.1.0). Refer to his blog for extended explanations on how to use the different techniques in your project. One method is also ported over from Miziziziz's Godot3DProjectileSolver project.
License
MIT
Usage
Most techniques are explained in this blog post. The code is well documented so refer to the file for how to use the API.
Similarly to Godot's intersect_ray
, most methods return a Dictionary
with the relevant information of the solution. A solution object has the following keys set:
position
: The calculated point of impact.time
: Duration of travel until the point of impact.gravity
: Gravity used for solution—the methods using a fixed lateral speed return a variable gravity.velocity
: The required velocity to reach the point of impact.
A library that provides tools to work with, and calculate, 3D ballistic trajectories. It's a collection of helpers that are designed to cover most use-cases requiring pre-calculations of velocity, time, position or collisions.
Reviews
Quick Information
A library that provides tools to work with, and calculate, 3D ballistic trajectories. It's a collection of helpers that are designed to cover most use-cases requiring pre-calculations of velocity, time, position or collisions.