fix incorrect rotations of rigid body objects.