Raanan Weber 9 роки тому
батько
коміт
5fbd3e5cb6
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      src/Physics/babylon.physicsImpostor.ts

+ 2 - 0
src/Physics/babylon.physicsImpostor.ts

@@ -213,6 +213,8 @@ module BABYLON {
             //conjugate deltaRotation
             if (this._deltaRotationConjugated) {
                 this.mesh.rotationQuaternion.multiplyToRef(this._deltaRotationConjugated, this._tmpRotationWithDelta);
+            } else {
+                this._tmpRotationWithDelta.copyFrom(this.mesh.rotationQuaternion);
             }
 
             this._physicsEngine.getPhysicsPlugin().setPhysicsBodyTransformation(this, this._tmpPositionWithDelta, this._tmpRotationWithDelta);