mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 13:33:38 +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();
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue