![]() |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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)
Code:
import Avatar avatar = Avatar.Person() pos = avatar.coordinates() |
|
#3
|
|||
|
|||
|
Traceback (most recent call last):
File "<string>", line 1, in ? AttributeError: VizAvatar instance has no attribute 'get' any suggestions? |
|
#4
|
|||
|
|||
|
sure, upgrade to the latest version
|
![]() |
|
|