PDA

View Full Version : set bone rotation - cal3d


munteanu24d
03-23-2010, 04:25 AM
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

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


Thank you in advance,
D.M.