fix orientation used for 3d audio

This commit is contained in:
Seth Alves 2017-06-05 15:53:01 -07:00
parent 9fcc1e15b8
commit 7a276f027f

View file

@ -1893,7 +1893,7 @@ void MyAvatar::updateOrientation(float deltaTime) {
auto headPose = getHeadControllerPoseInAvatarFrame();
if (headPose.isValid()) {
glm::quat localOrientation = headPose.rotation;
glm::quat localOrientation = headPose.rotation * Quaternions::Y_180;
// these angles will be in radians
// ... so they need to be converted to degrees before we do math...
glm::vec3 euler = glm::eulerAngles(localOrientation) * DEGREES_PER_RADIAN;