Jelajahi Sumber

Fixing small issues with OIMO

David Catuhe 11 tahun lalu
induk
melakukan
6b155186e8

+ 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;

File diff ditekan karena terlalu besar
+ 2 - 2
babylon.1.14-beta.js