Browse Source

Fix Merge

sebavan 6 years ago
parent
commit
5d75820571
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Physics/Plugins/ammoJSPlugin.ts

+ 2 - 2
src/Physics/Plugins/ammoJSPlugin.ts

@@ -267,7 +267,7 @@ import { AbstractMesh } from "Meshes/abstractMesh";
                 }
 
                 // Disable collision if NoImpostor, but keep collision if shape is btCompoundShape
-                if (impostor.type == BABYLON.PhysicsImpostor.NoImpostor && !colShape.getChildShape) {
+                if (impostor.type == PhysicsImpostor.NoImpostor && !colShape.getChildShape) {
                     body.setCollisionFlags(body.getCollisionFlags() | AmmoJSPlugin.DISABLE_COLLISION_FLAG);
                 }
 
@@ -398,7 +398,7 @@ import { AbstractMesh } from "Meshes/abstractMesh";
 
                             // Position needs to be scaled based on parent's scaling
                             var parentMat = childMesh.parent!.getWorldMatrix().clone();
-                            var s = new BABYLON.Vector3();
+                            var s = new Vector3();
                             parentMat.decompose(s);
                             this._tmpAmmoTransform.getOrigin().setValue(childMesh.position.x * s.x, childMesh.position.y * s.y, childMesh.position.z * s.z);