mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 23:51:49 +02:00
fix orientation used for 3d audio
This commit is contained in:
parent
9fcc1e15b8
commit
7a276f027f
1 changed files with 1 additions and 1 deletions
|
@ -1893,7 +1893,7 @@ void MyAvatar::updateOrientation(float deltaTime) {
|
||||||
|
|
||||||
auto headPose = getHeadControllerPoseInAvatarFrame();
|
auto headPose = getHeadControllerPoseInAvatarFrame();
|
||||||
if (headPose.isValid()) {
|
if (headPose.isValid()) {
|
||||||
glm::quat localOrientation = headPose.rotation;
|
glm::quat localOrientation = headPose.rotation * Quaternions::Y_180;
|
||||||
// these angles will be in radians
|
// these angles will be in radians
|
||||||
// ... so they need to be converted to degrees before we do math...
|
// ... so they need to be converted to degrees before we do math...
|
||||||
glm::vec3 euler = glm::eulerAngles(localOrientation) * DEGREES_PER_RADIAN;
|
glm::vec3 euler = glm::eulerAngles(localOrientation) * DEGREES_PER_RADIAN;
|
||||||
|
|
Loading…
Reference in a new issue