docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRHumanBodyJoint

    Containter for the human body joint data.

    Implements
    IEquatable<XRHumanBodyJoint>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public struct XRHumanBodyJoint : IEquatable<XRHumanBodyJoint>

    Constructors

    XRHumanBodyJoint(int, int, Vector3, Pose, Vector3, Pose, bool)

    Construct the human body joint.

    Declaration
    public XRHumanBodyJoint(int index, int parentIndex, Vector3 localScale, Pose localPose, Vector3 anchorScale, Pose anchorPose, bool tracked)
    Parameters
    Type Name Description
    int index

    The index for the joint in the skeleton.

    int parentIndex

    The index for the parent joint in the skeleton.

    Vector3 localScale

    The scale relative to the parent joint.

    Pose localPose

    The pose relative to the parent joint.

    Vector3 anchorScale

    The scale relative to the human body origin.

    Pose anchorPose

    The pose relative to the human body origin.

    bool tracked

    Whether the joint is tracked.

    Properties

    anchorPose

    The pose relative to the human body origin.

    Declaration
    public Pose anchorPose { get; }
    Property Value
    Type Description
    Pose

    The pose relative to the human body origin.

    anchorScale

    The scale relative to the human body origin.

    Declaration
    public Vector3 anchorScale { get; }
    Property Value
    Type Description
    Vector3

    The scale relative to the human body origin.

    index

    The index for the joint in the skeleton hierachy.

    Declaration
    public int index { get; }
    Property Value
    Type Description
    int

    The index for the joint in the skeleton hierachy.

    Remarks

    All indices will be non-negative.

    localPose

    The pose relative to the parent joint.

    Declaration
    public Pose localPose { get; }
    Property Value
    Type Description
    Pose

    The pose relative to the parent joint.

    localScale

    The scale relative to the parent joint.

    Declaration
    public Vector3 localScale { get; }
    Property Value
    Type Description
    Vector3

    The scale relative to the parent joint.

    parentIndex

    The index for the parent joint in the skeleton hierachy.

    Declaration
    public int parentIndex { get; }
    Property Value
    Type Description
    int

    The index for the parent joint in the skeleton hierachy.

    Remarks

    A negative parent index means the joint has no parent in the hierachy.

    tracked

    Whether the joint is tracked.

    Declaration
    public bool tracked { get; }
    Property Value
    Type Description
    bool

    true if the joint is tracked. Otherwise, false.

    Methods

    Equals(object)

    Tests for equality.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare against.

    Returns
    Type Description
    bool

    True if obj is of type XRHumanBodyJoint and Equals(XRHumanBodyJoint) also returns true; otherwise false.

    Overrides
    ValueType.Equals(object)

    Equals(XRHumanBodyJoint)

    Tests for equality.

    Declaration
    public bool Equals(XRHumanBodyJoint other)
    Parameters
    Type Name Description
    XRHumanBodyJoint other

    The other XRHumanBodyJoint to compare against.

    Returns
    Type Description
    bool

    True if every field in other is equal to this XRHumanBodyJoint, otherwise false.

    GetHashCode()

    Generates a hash suitable for use with containers like HashSet and Dictionary.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code generated from this object's fields.

    Overrides
    ValueType.GetHashCode()

    ToString()

    Generates a string representation of this XRHumanBodyJoint. Floating point values using the "F5" format specifier.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of this XRHumanBodyJoint.

    Overrides
    ValueType.ToString()

    ToString(string)

    Generates a string representation of this XRHumanBodyJoint.

    Declaration
    public string ToString(string format)
    Parameters
    Type Name Description
    string format

    A format specifier used for the floating point fields.

    Returns
    Type Description
    string

    A string representation of this XRHumanBodyJoint.

    Operators

    operator ==(XRHumanBodyJoint, XRHumanBodyJoint)

    Tests for equality. Same as Equals(XRHumanBodyJoint).

    Declaration
    public static bool operator ==(XRHumanBodyJoint lhs, XRHumanBodyJoint rhs)
    Parameters
    Type Name Description
    XRHumanBodyJoint lhs

    The left-hand side of the comparison.

    XRHumanBodyJoint rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is equal to rhs, otherwise false.

    operator !=(XRHumanBodyJoint, XRHumanBodyJoint)

    Tests for inequality. Same as !Equals(XRHumanBodyJoint).

    Declaration
    public static bool operator !=(XRHumanBodyJoint lhs, XRHumanBodyJoint rhs)
    Parameters
    Type Name Description
    XRHumanBodyJoint lhs

    The left-hand side of the comparison.

    XRHumanBodyJoint rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is not equal to rhs, otherwise false.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)