|
@@ -21,6 +21,9 @@ var BABYLON;
|
|
|
this.gravity = gravity || new BABYLON.Vector3(0, -9.807, 0);
|
|
|
this._currentPlugin.setGravity(this.gravity);
|
|
|
};
|
|
|
+ PhysicsEngine.prototype._getGravity = function () {
|
|
|
+ return this._currentPlugin.getGravity();
|
|
|
+ };
|
|
|
PhysicsEngine.prototype._registerMesh = function (mesh, impostor, options) {
|
|
|
return this._currentPlugin.registerMesh(mesh, impostor, options);
|
|
|
};
|
|
@@ -48,6 +51,9 @@ var BABYLON;
|
|
|
PhysicsEngine.prototype.getPhysicsBodyOfMesh = function (mesh) {
|
|
|
return this._currentPlugin.getPhysicsBodyOfMesh(mesh);
|
|
|
};
|
|
|
+ PhysicsEngine.prototype.getPhysicsPluginName = function () {
|
|
|
+ return this._currentPlugin.name;
|
|
|
+ };
|
|
|
// Statics
|
|
|
PhysicsEngine.NoImpostor = 0;
|
|
|
PhysicsEngine.SphereImpostor = 1;
|