docs.unity3d.com
    Show / Hide Table of Contents

    Struct Bone

    Represents a 3 dimensional, tracked bone within a hierarchy of other bones.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem.XR
    Syntax
    public struct Bone

    Fields

    m_ParentBoneIndex

    The index with the device's controls array where the parent bone resides.

    Declaration
    public uint m_ParentBoneIndex
    Field Value
    Type Description
    UInt32

    m_Position

    The tracked position of the bone.

    Declaration
    public Vector3 m_Position
    Field Value
    Type Description
    Vector3

    m_Rotation

    The tracked rotation of the bone.

    Declaration
    public Quaternion m_Rotation
    Field Value
    Type Description
    Quaternion

    Properties

    parentBoneIndex

    The index with the device's controls array where the parent bone resides.

    Declaration
    public uint parentBoneIndex { get; set; }
    Property Value
    Type Description
    UInt32

    position

    The tracked position of the bone.

    Declaration
    public Vector3 position { get; set; }
    Property Value
    Type Description
    Vector3

    rotation

    The tracked rotation of the bone.

    Declaration
    public Quaternion rotation { get; set; }
    Property Value
    Type Description
    Quaternion
    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