Skip to content

Commit

Permalink
fix elbow
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesBear committed Mar 28, 2017
1 parent ca64a19 commit 0e0ac81
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Scripts/ViveIKDemo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ void UpdateIK()
var limbik = item as RootMotion.FinalIK.LimbIK;
if (limbik.solver.goal == AvatarIKGoal.LeftFoot || limbik.solver.goal == AvatarIKGoal.RightFoot)
limbik.solver.bendNormal = new Vector3 (1, 0, 0);
else if (limbik.solver.goal == AvatarIKGoal.LeftHand)
limbik.solver.bendNormal = new Vector3 (0, 0, -1);
else if (limbik.solver.goal == AvatarIKGoal.RightHand)
limbik.solver.bendNormal = new Vector3 (0, 0, 1);
}
}

Expand Down
Binary file modified Assets/vive_ik_demo.unity
Binary file not shown.
12 changes: 12 additions & 0 deletions vive_ik_demo.userprefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Properties StartupItem="Assembly-CSharp.csproj">
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" PreferredExecutionTarget="Unity.Instance.Unity Editor" />
<MonoDevelop.Ide.Workbench ActiveDocument="Assets\Scripts\ViveIKDemo.cs">
<Files>
<File FileName="Assets\Scripts\ViveIKDemo.cs" Line="172" Column="53" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
</Properties>

0 comments on commit 0e0ac81

Please sign in to comment.