WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   dynamic access of avatar location (https://forum.worldviz.com/showthread.php?t=191)

valhalla 09-13-2004 05:25 PM

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?

tobin 09-13-2004 08: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.


All times are GMT -7. The time now is 05:25 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC