rotation around world axis, not local axis

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
scriptr
Posts: 16
Joined: Wed Aug 12, 2009 12:14 pm

rotation around world axis, not local axis

Post by scriptr »

Hi guys,

These codes rotates the node around local axis, how can i rotate the node around world axis?

Code: Select all

irr::core::matrix4 m;
m.setRotationDegrees(node->getRotation());
irr::core::matrix4 n;
n.setRotationDegrees(rotation);
m *= n;
node->setRotation( m.getRotationDegrees() );
Post Reply