Talk:GetDistance - ObjectReference

There are no discussions on this page.
Revision as of 04:31, 22 May 2021 by imported>Rasikko
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function uses the Pythagorean Theorem for calculating distance on a 3D coordinate plane.

This function returns rather fast. You could write your own distance function using the theorem but it would require 6 calls to the GetPositionXYZ, each taking the same amount of time to return as one call to GetDistance. --Rasikko (talk) 2021-05-22T05:16:43 (EDT)
Return to "GetDistance - ObjectReference" page.