Explorar el Código

TransformNode as spatial sound source fix [abs]

Poolminer hace 5 años
padre
commit
574a65ee5d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();