WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   saving the position (https://forum.worldviz.com/showthread.php?t=67)

poolshark 09-26-2003 12:46 PM

saving the position
 
is there a way to get an avatar's position in the environment without actually having global variables etc. Are the xyz coordinates attached to the avatars themselves.

so I can do something similar to avatar.getx() or something like that.

farshizzo 09-26-2003 01:30 PM

Which avatars are you referring to?

For the cal3d avatars you would do the follwoing:

Code:

avatar = viz.add('male.cfg')
pos = avatar.get(viz.POSITION)

For the older avatars you would do the following:

Code:

import Avatar
avatar = Avatar.Person()
pos = avatar.coordinates()


poolshark 09-26-2003 01:52 PM

Traceback (most recent call last):
File "", line 1, in ?
AttributeError: VizAvatar instance has no attribute 'get'

any suggestions?

farshizzo 09-26-2003 01:57 PM

sure, upgrade to the latest version


All times are GMT -7. The time now is 08:15 AM.

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