Rotation of XZY instead of the default XYZ

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
Hisster18
Posts: 4
Joined: Tue Jun 25, 2013 7:50 pm

Rotation of XZY instead of the default XYZ

Post by Hisster18 »

Hi,

I need to rotate models using XZY instead of the default XYZ. is there a way to change which order setRotation does the angles?
CuteAlien
Admin
Posts: 9927
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Rotation of XZY instead of the default XYZ

Post by CuteAlien »

Not really. You could use an IDummyTransformationSceneNode as parent (that's a scenenode that works with a matrix instead of rotations) for special case and build your own rotation matrix, but the default nodes use a fixed rotation order.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply