Class FabrikSolver2D
Component responsible for 2D Forward And Backward Reaching Inverse Kinematics (FABRIK) IK.
Implements
IPreviewable
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.U2D.IK
Assembly: solution.dll
Syntax
[MovedFrom("UnityEngine.Experimental.U2D.IK")]
[Solver2DMenu("Chain (FABRIK)")]
[Icon("Packages/com.unity.2d.animation/Editor/Assets/ComponentIcons/Animation.IKFabrik.png")]
public sealed class FabrikSolver2D : Solver2D, IPreviewable
Properties
| Name | Description |
|---|---|
| iterations | Get and set the solver's integration count. |
| tolerance | Get and set target distance tolerance. |
Methods
| Name | Description |
|---|---|
| DoPrepare() | Prepares the data required for updating the solver. |
| DoUpdateIK(List<Vector3>) | Updates the IK and sets the chain's transform positions. |
| GetChain(int) | Gets the chain in the solver at index. |
| GetChainCount() | Returns the number of chains in the solver. |