Difference between revisions of "Talk:GetDistance - ObjectReference"
Jump to navigation
Jump to search
m
no edit summary
imported>Rasikko m (Done testing. Function definitely uses the Pythagorean Theorem formula for calculating distance.) |
imported>Rasikko m |
||
Line 1: | Line 1: | ||
This function uses the Pythagorean Theorem for calculating distance on a 3D coordinate plane. | This function uses the Pythagorean Theorem for calculating distance on a 3D coordinate plane. | ||
: This function returns in about 16-17ms. 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) |