소스 검색

fixed issue with overloading getDirection

Adam Bowman 8 년 전
부모
커밋
98b12fcf85
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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();