ソースを参照

TransformNode as spatial sound source fix [abs]

Poolminer 5 年 前
コミット
574a65ee5d
1 ファイル変更1 行追加1 行削除
  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();