Browse Source

Merge pull request #1240 from andyps/master

fix typo in deprecated mesh.getPhysicsRestitution method
David Catuhe 9 years ago
parent
commit
3909666e5c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Mesh/babylon.abstractMesh.js
  2. 1 1
      src/Mesh/babylon.abstractMesh.ts

+ 1 - 1
src/Mesh/babylon.abstractMesh.js

@@ -755,7 +755,7 @@ var BABYLON;
          * @Deprecated. Use getPhysicsImpostor().getParam("restitution");
          */
         AbstractMesh.prototype.getPhysicsRestitution = function () {
-            return this.physicsImpostor.getParam("resitution");
+            return this.physicsImpostor.getParam("restitution");
         };
         AbstractMesh.prototype.getPositionInCameraSpace = function (camera) {
             if (!camera) {

+ 1 - 1
src/Mesh/babylon.abstractMesh.ts

@@ -846,7 +846,7 @@
          * @Deprecated. Use getPhysicsImpostor().getParam("restitution");
          */
         public getPhysicsRestitution(): number {
-            return this.physicsImpostor.getParam("resitution")
+            return this.physicsImpostor.getParam("restitution")
         }
 
         public getPositionInCameraSpace(camera?: Camera): Vector3 {