Vector:DistToSqr
Example
Checks if a player is within dist
units of another player in the most efficient way possible.
Output: true
Returns the squared distance of 2 vectors, this is quicker to call than Vector:Distance as DistToSqr does not need to calculate the square root, which is an expensive process.
When performing a distance check, ensure the distance being checked against is squared. See example code below.
Checks if a player is within dist
units of another player in the most efficient way possible.