PDA

View Full Version : dynamic access of avatar location


valhalla
09-13-2004, 06:25 PM
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?

tobin
09-13-2004, 09:28 PM
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.