euler problems in Vizard 3.0
Hi, I am running the following code in Vizard, and setting an avatar's head to follow the tracked euler does not work.
Code:
import viz Thank you! Christopher Lin |
The default behavior when setting the euler of a bone, is to set it in its local coordinate system. Since the head bone is the child of other bones, its local coordinate system does not match up with the world coordinate system. If you want to rotate the head bone in world coordinates, try the following:
Code:
head.setEuler(euler,viz.AVATAR_WORLD) |
Great, thanks a lot! That worked just fine.
By the way, is there a list of the viz module's constants with descriptions of what they do, particularly for the constants that have to do with the types of coordinate systems? (I hadn't heard of viz.AVATAR_WORLD before now.) I've looked through the documentation, but can only find lists of methods/functions. Thanks! |
The viz.AVATAR_WORLD value is mentioned in the command reference for all the bone transform commands (i.e. bone.setEuler, bone.setQuat, etc...)
|
All times are GMT -7. The time now is 01:47 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC