Bone Rotations
Hello,
When I run the following code, I don't get 0,0,0 output as I expect. Code:
male = viz.add('vcc_male.cfg') Thanks, Stephen |
I ran the following code:
Code:
male_pelvis.setEuler([0,0,0],viz.ABS_PARENT) Code:
[0.0, 0.0, 0.0] |
Ok, I think I kinda see. So each bone has a few different rotations that are combined? Like, it has its own, then gets rotated by the avatar world rotation? Since without the WORLD one, the code I originally posted gave me this:
[90.0, 8.8792461610864848e-005, -90.0] [-3.4150864394177916e-006, 0.0, 0.0] Even though I set the GLOBAL to 0,0,0. How come? |
No, each bone has a single position/rotation. The different mode options simply specify in which coordinate frame you want to set the value of the bone. In your code the line:
Code:
male_pelvis.setEuler([0,0,0],viz.ABS_PARENT) |
Ok, that's what I needed to know. Thanks!
|
Bones transforms_behave_differently_to node3d
From
But for |
All times are GMT -7. The time now is 08:37 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC