WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   set bone rotation - cal3d (https://forum.worldviz.com/showthread.php?t=2639)

munteanu24d 03-23-2010 04:25 AM

set bone rotation - cal3d
 
First of all, I am not sure that I posted the question in the right place, I still hope to get a hint from you.

I have a cal3d rigid model and i try to set new rotation values on it's bones.
When I set the rotation values directly on CoreBone, the rotation is correctly done (I can see the change).
When instead I set the new rotation values on CalBone, no change is done.
This is my piece of code
Code:

skeleton = calModel->getSkeleton();
bone = skeleton->getBone(boneID)
bone->setRotation(prevQuat * newQuat);
bone->calculateState();
//skeleton->calculateState();

Thank you in advance,
D.M.


All times are GMT -7. The time now is 03:08 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC