Rotate model using quaternion
- by ChocoMan
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?