rotate a model

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
rrlangly
Gnoblar
Posts: 19
Joined: Sat Jan 24, 2009 8:27 pm

rotate a model

Post by rrlangly »

I read the "Quaternion and Rotation Primer" on the wiki and would like to use Quaternions for rotating models displayed in my application. http://www.ogre3d.org/tikiwiki/tiki-ind ... ion+Primer

Basically I'd like to use a mouse to rotate a model on every axis, smoothly. Now, whether the camera rotates around the center (where the model is) or whether I should rotate the model, I not sure ... thoughts? Are there any simple examples of doing this using the tutorial application? I saw the examples in the wiki page, but the code snippets were fairly short and wasn't sure where they go.

Thanks for any help.