updatePhysicsBody was added getWorldObject was added to the physics engine.
@@ -684,6 +684,10 @@ var BABYLON;
this.getScene().getPhysicsEngine()._createLink(this, otherMesh, pivot1, pivot2, options);
};
AbstractMesh.prototype.updatePhysicsBodyPosition = function () {
+ BABYLON.Tools.Warn("updatePhysicsBodyPosition() is deprecated, please use updatePhysicsBody()");
+ this.updatePhysicsBody();
+ };
+ AbstractMesh.prototype.updatePhysicsBody = function () {
if (!this._physicImpostor) {
return;
}
@@ -795,6 +795,11 @@
public updatePhysicsBodyPosition(): void {
+ Tools.Warn("updatePhysicsBodyPosition() is deprecated, please use updatePhysicsBody()")
+ }
+
+ public updatePhysicsBody(): void {
@@ -54,6 +54,9 @@ var BABYLON;
PhysicsEngine.prototype.getPhysicsPluginName = function () {
return this._currentPlugin.name;
+ PhysicsEngine.prototype.getWorldObject = function () {
+ return this._currentPlugin.getWorldObject();
// Statics
PhysicsEngine.NoImpostor = 0;
PhysicsEngine.SphereImpostor = 1;
@@ -100,6 +100,10 @@
public getPhysicsPluginName(): string {
+ public getWorldObject() : any {
public static NoImpostor = 0;