Struct FABRIKChain2D
Structure to store FABRIK Chain data.
Inherited Members
Namespace: UnityEngine .U2D.IK
Assembly: Unity.2D.IK.Runtime.dll
Syntax
[MovedFrom("UnityEngine.Experimental.U2D.IK")]
public struct FABRIKChain2D
Fields
lengths
Array of chain lengths.
Declaration
public float[] lengths
Field Value
Type | Description |
---|---|
float[] |
origin
Position of the origin.
Declaration
public Vector2 origin
Field Value
Type | Description |
---|---|
Vector2 |
positions
Array of chain positions.
Declaration
public Vector2[] positions
Field Value
Type | Description |
---|---|
Vector2[] |
sqrTolerance
Target position's tolerance (squared).
Declaration
public float sqrTolerance
Field Value
Type | Description |
---|---|
float |
subChainIndices
Sub-Chain indices.
Declaration
public int[] subChainIndices
Field Value
Type | Description |
---|---|
int[] |
target
Position of the target which is used to indicate the desired position for the Effector.
Declaration
public Vector2 target
Field Value
Type | Description |
---|---|
Vector2 |
worldPositions
Array of world positions.
Declaration
public Vector3[] worldPositions
Field Value
Type | Description |
---|---|
Vector3[] |
Properties
first
Returns the first element's position.
Declaration
public Vector2 first { get; }
Property Value
Type | Description |
---|---|
Vector2 |
last
Returns the last element's position.
Declaration
public Vector2 last { get; }
Property Value
Type | Description |
---|---|
Vector2 |