ソースを参照

returning to extended world size due to scaling

Raanan Weber 5 年 前
コミット
e460b52be6
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/Physics/physicsImpostor.ts

+ 1 - 1
src/Physics/physicsImpostor.ts

@@ -610,7 +610,7 @@ export class PhysicsImpostor {
             //calculate the world matrix with no rotation
             this.object.computeWorldMatrix && this.object.computeWorldMatrix(true);
             let boundingInfo = this.object.getBoundingInfo();
-            let size = boundingInfo.boundingBox.extendSize.scale(2);
+            let size = boundingInfo.boundingBox.extendSizeWorld.scale(2);
 
             //bring back the rotation
             this.object.rotationQuaternion = q;