WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-13-2004, 06:25 PM
valhalla valhalla is offline
Member
 
Join Date: Sep 2004
Posts: 4
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?
Reply With Quote
  #2  
Old 09-13-2004, 09:28 PM
tobin tobin is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 251
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:34 AM.


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