Skip to content

Commit

Permalink
Support Bending(Knee/Elbow) Pull.
Browse files Browse the repository at this point in the history
Refactoring BodyIK.(for support bending pull.)
Putit optimize shoulder solver and change properties.
  • Loading branch information
Nora authored and Nora committed Mar 16, 2016
1 parent 0e18571 commit 64b225d
Show file tree
Hide file tree
Showing 5 changed files with 384 additions and 692 deletions.
3 changes: 1 addition & 2 deletions Editor/FullBodyIKInspector.cs
Expand Up @@ -213,8 +213,7 @@ void _OnInspectorGUI_Basic()
EditorUtil.GUI.Field( "Compute World Transform", ref settings.bodyIK.computeWorldTransform );

EditorUtil.GUI.Field( "Shoulder Solve Enabled", ref settings.bodyIK.shoulderSolveEnabled );
EditorUtil.GUI.Field( "Shoulder Resolve Enabled", ref settings.bodyIK.shoulderResolveEnabled );
EditorUtil.GUI.Slider( "Shoulder Resolve Bending Rate", ref settings.bodyIK.shoulderResolveBendingRate, 0.0f, 1.0f );
EditorUtil.GUI.Slider( "Shoulder Solve Bending Rate", ref settings.bodyIK.shoulderSolveBendingRate, 0.0f, 1.0f );
EditorUtil.GUI.Field( "Shoulder Limit Enabled", ref settings.bodyIK.shoulderLimitEnabled );
EditorUtil.GUI.Field( "Shoulder Limit Angle YPlus", ref settings.bodyIK.shoulderLimitAngleYPlus );
EditorUtil.GUI.Field( "Shoulder Limit Angle YMinus", ref settings.bodyIK.shoulderLimitAngleYMinus );
Expand Down
3 changes: 1 addition & 2 deletions Scripts/FullBodyIK.cs
Expand Up @@ -158,8 +158,7 @@ public class BodyIK
public bool computeWorldTransform = true;

public bool shoulderSolveEnabled = true;
public bool shoulderResolveEnabled = true;
public float shoulderResolveBendingRate = 0.25f;
public float shoulderSolveBendingRate = 0.25f;
public bool shoulderLimitEnabled = true;
public float shoulderLimitAngleYPlus = 30.0f;
public float shoulderLimitAngleYMinus = 1.0f;
Expand Down

0 comments on commit 64b225d

Please sign in to comment.