Projectile Toolkit provides various targeting algorithms to meet the needs of different scenarios, here are some example use cases:
Method | Example use case |
---|---|
VelocityByA | This method automatically adapts max height of the trajectory according to the distance to the target. Great for human-like throwing/jumping behavior, and projectile launch calculation in 3D top-down shooters. |
VelocityByAngle | Launch projectiles to hit a target with a specific elevation angle. |
VelocityByTime | Let archers to accurately hit moving targets. |
VelocityByHeight | Use in animations, or achieve realistic Off-Mesh Link / NavMesh Link movement, or achieve jump pad mechanism. |
AnglesBySpeed | Simulate weapons that has a specific launch speed, such as cannon and mortar. |
VelocitiesBySpeed | An extended version of AnglesBySpeed. It is more convenient than AnglesBySpeed when the rotation is not separated into y axis and x axis, such as hand-held mortar and bow. |
(new in 1.1) -ElevationalReach | Calculate and display the maximum distance a weapon can attack. |