Skip to content

Utilities.SolveProjectileTravelTime

Returns the time a projectile would take to travel to a TargetPos. To be fully honest, I copied and pasted this from somewhere then refactored it.

Parameters

Name Description Type Default
Position N/A Vector3 N/A
ProjSpeed N/A number N/A
TargetPos N/A Vector3 N/A
Gravity N/A number N/A

Return

<Vector3>, <number> BulletDirection, Time