View Full Version : saving the position
poolshark
09-26-2003, 12:46 PM
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:
avatar = viz.add('male.cfg')
pos = avatar.get(viz.POSITION)
For the older avatars you would do the following:
import Avatar
avatar = Avatar.Person()
pos = avatar.coordinates()
poolshark
09-26-2003, 01:52 PM
Traceback (most recent call last):
File "<string>", 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
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.