Euler - is irrlicht setup as XYZ or ZXY or ??

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
powerpop
Posts: 171
Joined: Thu Jan 08, 2004 1:39 am
Location: san francisco

Euler - is irrlicht setup as XYZ or ZXY or ??

Post by powerpop »

irrlicht uses euler angles - but which kind? - in euler the order matters (and it effects the math i use to convert an outside matrix to euler) - thanks!

ps. this answer should be added to the FAQ as basic info - or into the docs
Maureen Mccormick

Post by Maureen Mccormick »

hi powerpop

I think that irrlicht uses the "NASA Standard Aeroplane" euler angle interpretation.
I take that from the source itself :)

Code: Select all

matrix4::setRotationRadians( const vector3df& rotation ) 
so, a correct interpretation for irrlicht should be: [R]=[R3][R2][R1] with
R3 - a rotation around the x-axis, R2 - a rotation around the y-axis and R1 - a rotation around the z-axis

hope that helps.
Maureen
powerpop
Posts: 171
Joined: Thu Jan 08, 2004 1:39 am
Location: san francisco

Post by powerpop »

thanks, that helps and seems to be correct - its X,Y,Z
Post Reply