docs.unity3d.com
    目次を表示する/隠す

    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
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)