Rotate model using quaternion

Posted by ChocoMan on Game Development See other posts from Game Development or by ChocoMan
Published on 2012-09-14T22:03:06Z Indexed on 2012/09/15 3:48 UTC
Read the original article Hit count: 379

Filed under:
|

Currently I have this to rotate my 3D model that rotates on it's local axis independent from the world's axis:

// Rotate model with Right Thumbstick
modelRotation -= pController.ThumbSticks.Right.X * mRotSpeed; // float value

What I'm trying to do is rotate the model using quaternion and not by a matrix.

I've searched for tutorials, but have found none that explains thoroughly on how to achieve this. Does anyone know how to I can use quaternions to rotate my model or a complete tutorial?

© Game Development or respective owner

Related posts about XNA

Related posts about quaternion