This command doesn't exist, so I've been trying to re-create it by extracting the angles from the parents AbsoluteTransformation matrix and somehow combining them with the childs local rotation.
The Matrix methods have ntohing to rotate a rotation vector. So I am kind of stuck at this point.
Thanks,
TC
->getAbsoluteRotation()
Have a look at the docu and you'll see how to get the absolute rotation:
and you also can set the rotation:
Code: Select all
matrix4 mat = node->getAbsoluteTransformation ();
vector3df rot = mat.getRotationDegrees();
Code: Select all
matrix4 mat = node->getAbsoluteTransformation ();
mat.setRotationDegrees(vector3df(x, y, z));
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java