Open topic with navigation
<bone>.getQuat
Returns the quaternion rotation
<bone>.getQuat( |
|
mode = viz.ABS_PARENT |
) |
|
mode = viz.ABS_PARENT
Can be one of the following:
viz.ABS_PARENT viz.REL_PARENT | Return the value in the bones local coordinate system. |
viz.ABS_GLOBAL viz.REL_GLOBAL | Return the value in the global coordinate system. |
viz.AVATAR_LOCAL | Return the value in the avatars local coordinate system. |
viz.AVATAR_WORLD | Return the value in the avatars global coordinate system. |
Remarks
Use this command to retrieve the quaternion rotation of the bone. The rotation value will be relative to the coordinate system specified by the mode parameter.
Return Value
[ x , y , z , w ]
Example
head = avatar.getBone('skel_Head')
print(head.getQuat(viz.AVATAR_WORLD))
See also