David Catuhe пре 4 година
родитељ
комит
032c3e2380

Разлика између датотеке није приказан због своје велике величине
+ 2 - 2
dist/preview release/babylon.js


+ 9 - 7
dist/preview release/babylon.max.js

@@ -164241,6 +164241,8 @@ __webpack_require__.r(__webpack_exports__);
 /* harmony import */ var _Meshes_Builders_linesBuilder__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../Meshes/Builders/linesBuilder */ "./Meshes/Builders/linesBuilder.ts");
 /* harmony import */ var _physicsRaycastResult__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../physicsRaycastResult */ "./Physics/physicsRaycastResult.ts");
 /* harmony import */ var _Maths_math_scalar__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../Maths/math.scalar */ "./Maths/math.scalar.ts");
+/* harmony import */ var _Maths_math_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../Maths/math.constants */ "./Maths/math.constants.ts");
+
 
 
 
@@ -165160,13 +165162,13 @@ var AmmoJSPlugin = /** @class */ (function () {
     AmmoJSPlugin.prototype.setPhysicsBodyTransformation = function (impostor, newPosition, newRotation) {
         var trans = impostor.physicsBody.getWorldTransform();
         // If rotation/position has changed update and activate rigged body
-        if (trans.getOrigin().x() != newPosition.x ||
-            trans.getOrigin().y() != newPosition.y ||
-            trans.getOrigin().z() != newPosition.z ||
-            trans.getRotation().x() != newRotation.x ||
-            trans.getRotation().y() != newRotation.y ||
-            trans.getRotation().z() != newRotation.z ||
-            trans.getRotation().w() != newRotation.w) {
+        if (Math.abs(trans.getOrigin().x() - newPosition.x) > _Maths_math_constants__WEBPACK_IMPORTED_MODULE_10__["Epsilon"] ||
+            Math.abs(trans.getOrigin().y() - newPosition.y) > _Maths_math_constants__WEBPACK_IMPORTED_MODULE_10__["Epsilon"] ||
+            Math.abs(trans.getOrigin().z() - newPosition.z) > _Maths_math_constants__WEBPACK_IMPORTED_MODULE_10__["Epsilon"] ||
+            Math.abs(trans.getRotation().x() - newRotation.x) > _Maths_math_constants__WEBPACK_IMPORTED_MODULE_10__["Epsilon"] ||
+            Math.abs(trans.getRotation().y() - newRotation.y) > _Maths_math_constants__WEBPACK_IMPORTED_MODULE_10__["Epsilon"] ||
+            Math.abs(trans.getRotation().z() - newRotation.z) > _Maths_math_constants__WEBPACK_IMPORTED_MODULE_10__["Epsilon"] ||
+            Math.abs(trans.getRotation().w() - newRotation.w) > _Maths_math_constants__WEBPACK_IMPORTED_MODULE_10__["Epsilon"]) {
             this._tmpAmmoVectorA.setValue(newPosition.x, newPosition.y, newPosition.z);
             trans.setOrigin(this._tmpAmmoVectorA);
             this._tmpAmmoQuaternion.setValue(newRotation.x, newRotation.y, newRotation.z, newRotation.w);

Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
dist/preview release/babylon.max.js.map


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
dist/preview release/viewer/babylon.viewer.js


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
dist/preview release/viewer/babylon.viewer.max.js