View Full Version : saving the position

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.

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()

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?

09-26-2003, 01:57 PM
sure, upgrade to the latest version