Page 1 of 1

error in rotation matrix ?

Posted: Wed Feb 16, 2005 4:05 pm
by Palmeira
when I rotate a "k degrees" around Z axis for example "node-setRotation(0, 0,k)" we have a rotation of " k degrees " of X and Y axis . the same behavior is fount when rotate around Y axis.
But same behavior is not found when I rotate around X axis. The Y-axis which must be rotate appear fixed.
look the examples in files
http://palmeira.eee.ufmg.br/files/robWorld/
http://palmeira.eee.ufmg.br/files/x-rotation/
my e-mail palmeira@ufmg.br

Posted: Fri Feb 18, 2005 9:33 am
by CZestmyr
I´ve just tried the rotation as well and it shows the same results. I think this is an intention, because if the rotation is used for the player camera, your X axis always rotates with your Y axis - You can look up and down, regardless on which way you're just looking. Don´t know how to change it, though. Try to look in the documentation on the irr::ISceneNode, maybe it has some method to change the rotation matrix.

error in rotation matrix ?

Posted: Fri Feb 18, 2005 5:17 pm
by Guest
I' sorry for my poor experience in game programming, I'm try to use Irrlicht in a robotic simulator. I know that the view point of a camera depends on the relative rotation, the behavior found implies in error on absolute rotation.
furthermore when I rotate "k degrees" around Y axis for example "node->setRotation(0, k,0)" we found a rotation of " 2k degrees" in Z axis.
In other words this behavior has no effects in planar games when we use only Y axiz rotation, but should be catastrophic in 3d game like a flight simulator for example.

http://palmeira.eee.ufmg.br/files/robworld.zip
http://palmeira.eee.ufmg.br/files/x-rotation/
palmeira@ufmg.br

palmeira@ufmg.br