C# Class RootMotion.FinalIK.IKSolverFABRIK

Inheritance: RootMotion.FinalIK.IKSolverHeuristic
显示文件 Open project: Alx666/ProjectPhoenix Class Usage Examples

Public Properties

Property Type Description
OnPreIteration IterationDelegate

Public Methods

Method Description
SolveBackward ( Vector3 position ) : void

Solving stage 2 of the %FABRIK algorithm.

SolveForward ( Vector3 position ) : void

Solving stage 1 of the %FABRIK algorithm.

SolveJoint ( Vector3 pos1, Vector3 pos2, float length ) : Vector3

Interpolates the joint position to match the bone's length

Protected Methods

Method Description
OnInitiate ( ) : void
OnUpdate ( ) : void

Private Methods

Method Description
BackwardReach ( Vector3 position ) : void
BackwardReachLimited ( Vector3 position ) : void
BackwardReachUnlimited ( Vector3 position ) : void
ForwardReach ( Vector3 position ) : void
GetLimitedRotation ( int index, Quaternion q, bool &changed ) : Quaternion
GetParentSolverPosition ( int index ) : Vector3
GetParentSolverRotation ( int index ) : Quaternion
LimitForward ( int rotateBone, int limitBone ) : void
MapToSolverPositions ( ) : void
MapToSolverPositionsLimited ( ) : void
OnPostSolve ( ) : void
OnPreSolve ( ) : void
Solve ( Vector3 targetPosition ) : void
SolverMove ( int index, Vector3 offset ) : void
SolverMoveChildrenAroundPoint ( int index, Quaternion rotation ) : void
SolverRotate ( int index, Quaternion rotation, bool recursive ) : void
SolverRotateChildren ( int index, Quaternion rotation ) : void

Method Details

OnInitiate() protected method

protected OnInitiate ( ) : void
return void

OnUpdate() protected method

protected OnUpdate ( ) : void
return void

SolveBackward() public method

Solving stage 2 of the %FABRIK algorithm.
public SolveBackward ( Vector3 position ) : void
position Vector3
return void

SolveForward() public method

Solving stage 1 of the %FABRIK algorithm.
public SolveForward ( Vector3 position ) : void
position Vector3
return void

SolveJoint() public static method

Interpolates the joint position to match the bone's length
public static SolveJoint ( Vector3 pos1, Vector3 pos2, float length ) : Vector3
pos1 Vector3
pos2 Vector3
length float
return Vector3

Property Details

OnPreIteration public_oe property

Called before each iteration of the solver.
public IterationDelegate OnPreIteration
return IterationDelegate