quaternion rotate on object

quaternion rotate on object

Anonymous
Not applicable
1,198 Views
1 Reply
Message 1 of 2

quaternion rotate on object

Anonymous
Not applicable

Is there anyway to apply a quaternion rotation to an object. I have a rotation delta between frames that is being calculated continously as a quaternion and I want to apply it to that object each frame. I was going to try to use the rotate command, but it seems like this command only takes Euler angles. Is my only option to use MQuaternion to convert to Euler before applying the rotation. Will this result in any performance hits?

0 Likes
Accepted solutions (1)
1,199 Views
1 Reply
Reply (1)
Message 2 of 2

cheng_xi_li
Autodesk Support
Autodesk Support
Accepted solution

Hi cameronbillingham,

 

I think MPxTranformMatrix::rotateBy(MQuaternion) is what you are looking for. The rockingTransform sample in our devkit uses this for rotation. You can check that. I don't think there should be any performance issues.

 

Yours,

Li

0 Likes