How to Use?
To use this script, simply provide a Position
and Velocity
arguments to the function, and it will return a Range
(Not to be confused with the position) and Time
(Time of flight).
You can approximate the position by adding Range
to Position
. That is;
local Range = PredictProjectile(Position,Velocity)
local Approximated_Position = Position + Range