Explorar o código

returning to extended world size due to scaling

Raanan Weber %!s(int64=5) %!d(string=hai) anos
pai
achega
e460b52be6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;