Explorar o código

removed upAxis from constructor

Adam Bowman %!s(int64=8) %!d(string=hai) anos
pai
achega
a5e0a32a81
Modificáronse 1 ficheiros con 3 adicións e 5 borrados
  1. 3 5
      src/Bones/babylon.boneLookController.ts

+ 3 - 5
src/Bones/babylon.boneLookController.ts

@@ -4,7 +4,7 @@ module BABYLON {
         public target: Vector3;
         public mesh: AbstractMesh;
         public bone: Bone;
-        public upAxis: Vector3;
+        public upAxis: Vector3 = Vector3.Up();
 
         public adjustYaw = 0;
         public adjustPitch = 0;
@@ -18,7 +18,7 @@ module BABYLON {
         private _tmpMat1 = Matrix.Identity();
         private _tmpMat2 = Matrix.Identity();
 
-        constructor(mesh: AbstractMesh, bone: Bone, target: Vector3, upAxis:Vector3 = new Vector3(0, 1, 0), adjustYaw: number = 0, adjustPitch: number = 0, adjustRoll: number){
+        constructor(mesh: AbstractMesh, bone: Bone, target: Vector3, adjustYaw: number = 0, adjustPitch: number = 0, adjustRoll: number){
 
             this.mesh = mesh;
             this.bone = bone;
@@ -27,9 +27,7 @@ module BABYLON {
             this.adjustYaw = adjustYaw;
             this.adjustPitch = adjustPitch;
             this.adjustRoll = adjustRoll;
-
-            this.upAxis = upAxis;
-
+            
         }
 
         public update (): void {