Newbie question about FromAxisAngle or FromEulerAnglesXYZ

Problems building or running the engine, queries about how to use features etc.
Clodo
Gnoblar
Posts: 2
Joined: Fri Jun 04, 2004 2:25 pm

Newbie question about FromAxisAngle or FromEulerAnglesXYZ

Post by Clodo »

How i can convert the
FromAxisAngle(const Vector3& rkAxis, Real fRadians)
to only 3 Real X,Y,Z values (rotation angle from each axis)?
or where i can find a newbie docs about 3d math basics?
Thanks!
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67

Post by sinbad »

Quaternion has methods getYaw(), getPitch() and getRoll() which let you do this. Be aware though that using Euler angles for composite calculations is inadvisable (due to gimbal lock), so make sure you're only using them for simple one-off calculations.