World rotation

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
george++
Posts: 16
Joined: Mon Sep 28, 2009 5:30 pm
Location: Hellas

World rotation

Post by george++ »

Could anyone help me to find the world rotation of a child node?
Thanks in advance
May the software be with you
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

there is no such thing :P

But you can use core::matrix4 node->getAbsoluteTransformation() if you need access to that.
george++
Posts: 16
Joined: Mon Sep 28, 2009 5:30 pm
Location: Hellas

Post by george++ »

Oops!, thanks
After reading your post, I found in the manual:
virtual const core::vector3df& irr::scene::ISceneNode::getRotation ( ) const [inline, virtual]

Gets the rotation of the node relative to its parent.

Note that this is the relative rotation of the node. If you want the absolute rotation, use getAbsoluteTransformation().getRotation()
May the software be with you
Post Reply