#1
|
|||
|
|||
dynamic access of avatar location
I've been trying to calculate the distance between two avatars by getting their centres and using pythagoras to get the distance. However, I've ran into a walk concerning how to get the positions of the avatars. How would I get the x coordinate, y coordinate, z coordinate of an avatar or all three in an array?
|
#2
|
|||
|
|||
An avatar is a subclass of a node3d object. If you look under the help "command reference" for node3d objects, you'll see a method called "get". It can get the position along with many other states of any valid node3d object. Refer to the docs for syntax.
|
|
|