Code: Select all
core::vector3df rot;
core::matrix4 m;
rot = m.getRotationDegrees();
cout<<"rot0:"<<rot.X<<", "<<rot.Y<<", "<<rot.Z<<endl;
m.setRotationDegrees(core::vector3df(0,180,0));
rot = m.getRotationDegrees();
cout<<"rot1:"<<rot.X<<", "<<rot.Y<<", "<<rot.Z<<endl;
core::vector3df rotY(0,90,0);
m.rotateVect(rotY);
cout<<"rot2:"<<rotY.X<<", "<<rotY.Y<<", "<<rotY.Z<<endl;
Code: Select all
rot0:0, -0, 0
rot1:180, 360, 180
rot2:-0, 90, 0
why "rot1:180, 360, 180" and not 0,180,0?
and why not "rot2:0,270,0" ? how can I make it rotate to 270, by moving more 90º from 180º using matrix ?