Need a funktion
#5

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
There's a difference between "PlayerToPoint" and "IsPlayerInRangeOfPoint".

PlayerToPoint returns the distance
IsPlayerInRangeOfPoint returns true or false
Yes, that's correct. You do not need to calculate the distance. The main difference between them is efficiency, not accuracy.

IsPlayerInRangeOfPoint is a lot more efficient for range checking. It compares the squares and does not use an expensive square root operation.
Reply


Messages In This Thread
Need a funktion - by cruising - 16.06.2011, 11:33
Re: Need a funktion - by Sasino97 - 16.06.2011, 12:21
Re: Need a funktion - by Lorenc_ - 16.06.2011, 12:23
Re: Need a funktion - by Sasino97 - 16.06.2011, 12:27
Re: Need a funktion - by Simon - 16.06.2011, 12:46

Forum Jump:


Users browsing this thread: 1 Guest(s)