Explorar o código

set default poleAngle to 0 and removed maxAngle from constructor

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

+ 2 - 2
src/Bones/babylon.boneIKController.ts

@@ -36,7 +36,7 @@ module BABYLON {
 
         }
 
-        constructor(mesh: AbstractMesh, bone: Bone, target: AbstractMesh, poleTarget: AbstractMesh, poleAngle: number, maxAngle: number = Math.PI){
+        constructor(mesh: AbstractMesh, bone: Bone, target: AbstractMesh, poleTarget: AbstractMesh, poleAngle: number = 0){
 
             target.computeWorldMatrix(true);
             poleTarget.computeWorldMatrix(true);
@@ -74,7 +74,7 @@ module BABYLON {
 
             }
 
-            this.maxAngle = maxAngle;
+            this.maxAngle = Math.PI;
 
         }