Class IKChain2D
Class for storing data for a 2D IK Chain.
Inherited Members
Namespace: UnityEngine.U2D.IK
Assembly: solution.dll
Syntax
[MovedFrom("UnityEngine.Experimental.U2D.IK")]
[Serializable]
public class IKChain2D
Fields
| Name | Description |
|---|---|
| m_Lengths | Lengths of IK Chain. |
Properties
| Name | Description |
|---|---|
| effector | Get and set the transform used as the IK Effector. |
| isValid | Returns true if the IK Chain is valid. False otherwise. |
| lengths | Gets the length of the IK Chain. |
| rootTransform | Get the root transform for the IK Chain. |
| target | Get and set the transform used as the IK Target. |
| transformCount | Get and Set the number of transforms in the IK Chain. |
| transforms | Get the transforms that are used in the IK Chain. |
Methods
| Name | Description |
|---|---|
| BlendFkToIk(float, bool) | Blend between Forward Kinematics and Inverse Kinematics. |
| Initialize() | Initialize the IK Chain. |
| RestoreDefaultPose(bool) | Restores the IK Chain to it's default pose. |
| StoreLocalRotations() | Explicitly stores the local rotation. |