If I now do:
Code: Select all
btTransform transform;
transform.setRotation( btQuaternion(-0.0419935,-0.876204,-0.447583,0.173706) ); // because btQuaternion is (w,x,y,z)
std::cout << transform.getRotation().x() << " " << transform.getRotation().y() << " " << transform.getRotation().z() << " " << transform.getRotation().w() << std::endl;
0.0419935 0.876204 0.447583 -0.173706
Why??