• Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Current Version: 2.0: 2023-04-14T18:42:12Z
  • First Published: 2022-07-03T07:14:12Z
  • Size: 683056
  • Supported Unity Versions: 2019.4.0
tools physics

Projectile Toolkit - Targeting and Trajectory Prediction

(16 Votes)
$39.92 $19.96

Want to implement game mechanics based on projectile motion? Want enemy AI to use ranged weapons such as cannons, rocks or arrows to accurately hit targets? Want to have full control over jump motion of objects in games or animations without losing their physical properties? This toolkit has got you covered!


🎮 Playable WebGL Demos

📚 Documentation


Projectile Toolkit is a physics toolkit that solves two key problems related to projectile motion: targeting algorithms for gravity-affected rigidbodies to hit the specified target, and trajectory prediction algorithms that predict and render the trajectory of a rigidbody.


⚡ Projectile Toolkit is extremly easy to use, and can be quickly integrated into existing projects.


🏆 Features:

- Flexible and Easy to Use, the core API is carefully-designed static methods, can be called directly from your scripts

- Super Fast, most algorithms don't even touch trigonometric functions

- Works in both 3D and 2D, (works in 2D if only your game treats y as up axis)

- Works on all build platforms

- Plenty of inspirational demos (currently 3 demo scenes and 1 game). Great for both learning this toolkit and quick prototyping

- Full source code

- Detailed documentation


🎁 Bonuses:

Useful game toolkits such as:

★ explosion system

★ simple top-down character controller (character movement)



Technical details

-----------------------------


🎯 Targeting algorithms:

Computation of a gravity-affected rigidbody to hit the specified target. Extremely easy to use, you just specify start point, end point, and one of the following:

Computes the launch Velocity by:

- Angle

- Height

- Time

- a coefficient of the quadratic function

- Speed

Computes the launch angle by:

- Speed

(NEW in 1.1) Computes the max range by:

- Elevation and Speed

API Reference

Use case comparison


☄️ Trajectory prediction:

- Predict the position of the projectile at a given time

- Predict the whole trajectory points

- (NEW in 1.1) Test if a given velocity can let a projectile to hit a given target

- (NEW in 1.1) Predict the flight time

- Trajectory Predictor, an easy to use component to predict and render the trajectory

- (NEW in 2.0) PEB Trajectory Predictor, a brand new predictor based on the physics engine, accurate and performance friendly, supports bounces, drag, physics materials, etc., supports dynamic obstacles

    • Fully customizable line style

    • Two template styles provided: dash, slash


-----------------------------

Upcoming:

- Support custom gravity direction

- Propulsion library


Add to cart
This site contains affiliate links, which means that we can receive a commission if you click on a link and buy something that we have recommended.
Although clicking on these links will not cost you anything, they will help us finance our development projects while recommending good products!