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
how to set rotation? btMatrix3x3.getEuler ( .... ) ?
-
- Posts: 8
- Joined: Wed Oct 31, 2007 2:59 pm