소스 검색

Fixing small issues with OIMO

David Catuhe 11 년 전
부모
커밋
6b155186e8
4개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      Babylon/Physics/Plugins/babylon.oimoJSPlugin.js
  2. 1 1
      Babylon/Physics/Plugins/babylon.oimoJSPlugin.ts
  3. 1 1
      babylon.1.14-beta-debug.js
  4. 2 2
      babylon.1.14-beta.js

+ 1 - 1
Babylon/Physics/Plugins/babylon.oimoJSPlugin.js

@@ -306,7 +306,7 @@ var BABYLON;
                         // Body position
                         var bodyX = mtx.m[12], bodyY = mtx.m[13], bodyZ = mtx.m[14];
 
-                        if (delta) {
+                        if (!delta) {
                             mesh.position.x = bodyX;
                             mesh.position.y = bodyY;
                             mesh.position.z = bodyZ;

+ 1 - 1
Babylon/Physics/Plugins/babylon.oimoJSPlugin.ts

@@ -326,7 +326,7 @@ module BABYLON {
                             bodyY = mtx.m[13],
                             bodyZ = mtx.m[14];
 
-                        if (delta) {
+                        if (!delta) {
                             mesh.position.x = bodyX;
                             mesh.position.y = bodyY;
                             mesh.position.z = bodyZ;

+ 1 - 1
babylon.1.14-beta-debug.js

@@ -16576,7 +16576,7 @@ var BABYLON;
                        
                         var bodyX = mtx.m[12], bodyY = mtx.m[13], bodyZ = mtx.m[14];
 
-                        if (delta) {
+                        if (!delta) {
                             mesh.position.x = bodyX;
                             mesh.position.y = bodyY;
                             mesh.position.z = bodyZ;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2 - 2
babylon.1.14-beta.js