docs.unity3d.com
    Show / Hide Table of Contents

    Struct FABRIKChain2D

    Structure to store FABRIK Chain data.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.U2D.IK
    Syntax
    [MovedFrom("UnityEngine.Experimental.U2D.IK")]
    public struct FABRIKChain2D

    Fields

    lengths

    Array of chain lengths.

    Declaration
    public float[] lengths
    Field Value
    Type Description
    Single[]

    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
    Single

    subChainIndices

    Sub-Chain indices.

    Declaration
    public int[] subChainIndices
    Field Value
    Type Description
    Int32[]

    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 readonly Vector2 first { get; }
    Property Value
    Type Description
    Vector2

    last

    Returns the last element's position.

    Declaration
    public readonly Vector2 last { get; }
    Property Value
    Type Description
    Vector2
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023