Difference between revisions of "Talk:GetDistance - ObjectReference"
Jump to navigation
Jump to search
imported>Rasikko (Created page with "Seems like this function takes the x position of both objects and subtracts them, using the difference as the distance. However upon testing this, the math doesn't quite agree...") |
imported>Rasikko m |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
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. --[[User:Rasikko|Rasikko]] ([[User talk:Rasikko|talk]]) 2021-05-22T05:16:43 (EDT) |
Latest revision as of 04:31, 22 May 2021
This function uses the Pythagorean Theorem for calculating distance on a 3D coordinate plane.