فهرست منبع

after-steps was missing, spring didn't work
solves https://github.com/BabylonJS/Babylon.js/issues/3095

Raanan Weber 7 سال پیش
والد
کامیت
5c55e44c8e
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/Physics/babylon.physicsImpostor.ts

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

@@ -427,6 +427,10 @@ module BABYLON {
                 return;
             }
 
+            this._onAfterPhysicsStepCallbacks.forEach((func) => {
+                func(this);
+            });
+
             this._physicsEngine.getPhysicsPlugin().setTransformationFromPhysicsBody(this);
             // object has now its world rotation. needs to be converted to local.
             if (this.object.parent && this.object.rotationQuaternion) {