Targeting API example use cases

 

Projectile Toolkit provides various targeting algorithms to meet the needs of different scenarios, here are some example use cases:

MethodExample use case
VelocityByAThis 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.
VelocityByAngleLaunch projectiles to hit a target with a specific elevation angle.
VelocityByTimeLet archers to accurately hit moving targets.
VelocityByHeightUse in animations, or achieve realistic Off-Mesh Link / NavMesh Link movement, or achieve jump pad mechanism.
AnglesBySpeedSimulate weapons that has a specific launch speed, such as cannon and mortar.
VelocitiesBySpeedAn 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) -ElevationalReachCalculate and display the maximum distance a weapon can attack.