浏览代码

Merge pull request #322 from Temechon/patch-16

Update babylon.oimoJSPlugin.ts
David Catuhe 10 年之前
父节点
当前提交
7c0bb6e7b9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Babylon/Physics/Plugins/babylon.oimoJSPlugin.ts

+ 2 - 0
Babylon/Physics/Plugins/babylon.oimoJSPlugin.ts

@@ -320,6 +320,7 @@ module BABYLON {
                             mesh.rotationQuaternion = new BABYLON.Quaternion(0, 0, 0, 1);
                             mesh.rotationQuaternion = new BABYLON.Quaternion(0, 0, 0, 1);
                         }
                         }
                         mesh.rotationQuaternion.fromRotationMatrix(mtx);
                         mesh.rotationQuaternion.fromRotationMatrix(mtx);
+                        mesh.computeWorldMatrix();
 
 
                     } else {
                     } else {
                         m = body.getMatrix();
                         m = body.getMatrix();
@@ -344,6 +345,7 @@ module BABYLON {
                             mesh.rotationQuaternion = new BABYLON.Quaternion(0, 0, 0, 1);
                             mesh.rotationQuaternion = new BABYLON.Quaternion(0, 0, 0, 1);
                         }
                         }
                         mesh.rotationQuaternion.fromRotationMatrix(mtx);
                         mesh.rotationQuaternion.fromRotationMatrix(mtx);
+                        mesh.computeWorldMatrix();
                     }
                     }
                 }
                 }
             }
             }