Yes, it should be all in radians. Why the addRotation thing does not work for you is strange as it seems good to me. Maybe get the MStatus and check what it tells you.
Did you check MFnTransform ? In case you want to edit xform nodes in the scene. --- On Mon, 8/30/10, John Cassella <redp...@gmail.com> wrote: |
Hi,
I just looked a little bit in some cpp files and I didnt`t find any cases exactly like yours. Usually I create an MEulerRotation or MQuaternion and use that to rotate an MTransformationMatrix. Here is an example of an MEulerRotation:
MEulerRotation rotOffEuler ( rotOff[0], rotOff[1], rotOff[2], (MEulerRotation::RotationOrder) rotOrder );
MTransformationMatrix rotOffTMatrix;
rotOffTMatrix.rotateBy(rotOffEuler, MSpace::kTransform, &stat);
What I like about the MEulerRotation is that it can be used as a matrix using the .asMatrix() member function. I hope this helps a little bit.
Cheers,
Jan