I need to know the maximum and minimum values of w,x,y,z of each rigid body's quaternion.
I believe that they are in [0,1), but I am not sure. Is there a way to find that out?
For example, what is the max and min expected output for "some_body" at any position from the following code:
Code: Select all
btTransform transform;
transform.setIdentity();
some_body->getMotionState()->getWorldTransform(transform);
std::cout << "w=" << transform.getRotation().getW() << std::endl;
std::cout << "x=" << transform.getRotation().getX() << std::endl;
std::cout << "y=" << transform.getRotation().getY() << std::endl;
std::cout << "z=" << transform.getRotation().getZ() << std::endl;