how to set rotation? btMatrix3x3.getEuler ( .... ) ?

GilsonLaurent
Posts: 8
Joined: Wed Oct 31, 2007 2:59 pm

how to set rotation? btMatrix3x3.getEuler ( .... ) ?

Post by GilsonLaurent »

Hi,

this little code outputs "-3.0505:-0.424628:-1.92655".

btMatrix3x3 mat;
mat.setIdentity();
mat.setEulerYPR(btScalar(1.f),btScalar(2.f),btScalar(3.f));
btScalar y,r,p;
mat.getEuler(y,r,p);
std::cout << y << ":" << r << ":" << p << "\n";

and 0, 0, 0 turns into 0, -PI/2, 0.

Help !

thanks