|
@@ -404,6 +404,7 @@ module BABYLON {
|
|
|
|
|
|
this.object.translate(this._deltaPosition, -1);
|
|
this.object.translate(this._deltaPosition, -1);
|
|
this._deltaRotationConjugated && this.object.rotationQuaternion && this.object.rotationQuaternion.multiplyToRef(this._deltaRotationConjugated, this.object.rotationQuaternion);
|
|
this._deltaRotationConjugated && this.object.rotationQuaternion && this.object.rotationQuaternion.multiplyToRef(this._deltaRotationConjugated, this.object.rotationQuaternion);
|
|
|
|
+ this.object.computeWorldMatrix(false);
|
|
if (this.object.parent && this.object.rotationQuaternion) {
|
|
if (this.object.parent && this.object.rotationQuaternion) {
|
|
this.getParentsRotation();
|
|
this.getParentsRotation();
|
|
this._tmpQuat.multiplyToRef(this.object.rotationQuaternion, this._tmpQuat);
|
|
this._tmpQuat.multiplyToRef(this.object.rotationQuaternion, this._tmpQuat);
|
|
@@ -427,6 +428,10 @@ module BABYLON {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ this._onAfterPhysicsStepCallbacks.forEach((func) => {
|
|
|
|
+ func(this);
|
|
|
|
+ });
|
|
|
|
+
|
|
this._physicsEngine.getPhysicsPlugin().setTransformationFromPhysicsBody(this);
|
|
this._physicsEngine.getPhysicsPlugin().setTransformationFromPhysicsBody(this);
|
|
// object has now its world rotation. needs to be converted to local.
|
|
// object has now its world rotation. needs to be converted to local.
|
|
if (this.object.parent && this.object.rotationQuaternion) {
|
|
if (this.object.parent && this.object.rotationQuaternion) {
|