Browse Source

fixed issue with overloading getDirection

Adam Bowman 8 năm trước cách đây
mục cha
commit
98b12fcf85
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/Bones/babylon.bone.ts

+ 3 - 3
src/Bones/babylon.bone.ts

@@ -511,17 +511,17 @@
 
         }
 
-        public getDirection (localAxis: Vector3, mesh: AbstractMesh): Vector3{
+        public getDirection (localAxis: Vector3, mesh?: AbstractMesh): Vector3{
 
             var result = Vector3.Zero();
 
-            this.getDirectionToRef(localAxis, mesh, result);
+            this.getDirectionToRef(localAxis, result, mesh);
             
             return result;
 
         }
 
-        public getDirectionToRef (localAxis: Vector3, mesh: AbstractMesh, result: Vector3): void {
+        public getDirectionToRef (localAxis: Vector3, result: Vector3, mesh?: AbstractMesh): void {
 
             this._skeleton.computeAbsoluteTransforms();