Class Solver2D
Abstract class for implementing a 2D IK Solver.
Inherited Members
Namespace: UnityEngine.U2D.IK
Assembly: solution.dll
Syntax
[MovedFrom("UnityEngine.Experimental.U2D.IK")]
public abstract class Solver2D : MonoBehaviour
Properties
Name | Description |
---|---|
allChainsHaveTargets | Returns true if all chains in the Solver have a target. |
chainCount | Returns the number of IKChain2D in the solver. |
constrainRotation | Gets and sets the rotation constrain property. |
isValid | Returns true if the Solver2D is in a valid state. |
solveFromDefaultPose | Get and set restoring default pose before the update. |
weight | Get and Set Solver weights. |
Methods
Name | Description |
---|---|
DoInitialize() | Override to initialize the solver. |
DoPrepare() | Override to prepare the solver for update. |
DoUpdateIK(List<Vector3>) | Override to perform Solver IK update. |
DoValidate() | Override to perform custom validation. |
GetChain(int) | Override to return the IKChain2D at the given index. |
GetChainCount() | Override to return the number of chains in the Solver. |
GetPlaneRootTransform() | Override to return the root transform of the Solver. The default implementation returns the root transform of the first chain. |
GetPointOnSolverPlane(Vector3) | Convert a world position coordinate to the solver's plane space. |
GetWorldPositionFromSolverPlanePoint(Vector2) | Convert a position from solver's plane to world coordinates. |
Initialize() | Initializes the solver. |
OnValidate() | Validate and initialize the Solver. |
UpdateIK(List<Vector3>, float) | Perform the Solver IK update with specified target positions. |
UpdateIK(float) | Perform the Solver IK update. |