16.06.2011, 12:46
Quote:
There's a difference between "PlayerToPoint" and "IsPlayerInRangeOfPoint".
PlayerToPoint returns the distance IsPlayerInRangeOfPoint returns true or false |
IsPlayerInRangeOfPoint is a lot more efficient for range checking. It compares the squares and does not use an expensive square root operation.