Преглед изворни кода

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;