소스 검색

Merge pull request #1240 from andyps/master

fix typo in deprecated mesh.getPhysicsRestitution method
David Catuhe 9 년 전
부모
커밋
3909666e5c
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 {