Browse Source

TransformNode as spatial sound source fix [abs]

Poolminer 5 years ago
parent
commit
574a65ee5d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Audio/sound.ts

+ 1 - 1
src/Audio/sound.ts

@@ -943,7 +943,7 @@ export class Sound {
         }
         else {
             if (!(<any>node).getBoundingInfo) {
-                this.setPosition(node.position);
+                this.setPosition(node.absolutePosition);
             } else {
                 let mesh = node as AbstractMesh;
                 let boundingInfo = mesh.getBoundingInfo();