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 |
---|---|
all |
Returns true if all chains in the Solver have a target. |
chain |
Returns the number of IKChain2D in the solver. |
constrain |
Gets and sets the rotation constrain property. |
is |
Returns true if the Solver2D is in a valid state. |
solve |
Get and set restoring default pose before the update. |
weight | Get and Set Solver weights. |
Methods
Name | Description |
---|---|
Do |
Override to initialize the solver. |
Do |
Override to prepare the solver for update. |
Do |
Override to perform Solver IK update. |
Do |
Override to perform custom validation. |
Get |
Override to return the IKChain2D at the given index. |
Get |
Override to return the number of chains in the Solver. |
Get |
Override to return the root transform of the Solver. The default implementation returns the root transform of the first chain. |
Get |
Convert a world position coordinate to the solver's plane space. |
Get |
Convert a position from solver's plane to world coordinates. |
Initialize() | Initializes the solver. |
On |
Validate and initialize the Solver. |
Update |
Perform the Solver IK update with specified target positions. |
Update |
Perform the Solver IK update. |