فهرست منبع

fix typo in deprecated mesh.getPhysicsRestitution method

Andrey Pashentsev 9 سال پیش
والد
کامیت
85cb8bc264
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");
          * @Deprecated. Use getPhysicsImpostor().getParam("restitution");
          */
          */
         AbstractMesh.prototype.getPhysicsRestitution = function () {
         AbstractMesh.prototype.getPhysicsRestitution = function () {
-            return this.physicsImpostor.getParam("resitution");
+            return this.physicsImpostor.getParam("restitution");
         };
         };
         AbstractMesh.prototype.getPositionInCameraSpace = function (camera) {
         AbstractMesh.prototype.getPositionInCameraSpace = function (camera) {
             if (!camera) {
             if (!camera) {

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

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