docs.unity.cn
    Show / Hide Table of Contents

    Struct Pose

    Represents a tracked object in real-world space. All poses are given in the same root space, dictated by TrackingOriginModeFlags.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.XR.OpenXR.Input
    Syntax
    public struct Pose

    Properties

    angularVelocity

    The position, in radians per second, of the object in-real world space. This will be available if trackingState contains the AngularVelocity flag.

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

    isTracked

    If true, this position is being accurately tracked in real-world space. This value means that no values are estimated and tracking is not currently inhibited in any way.

    Declaration
    public bool isTracked { readonly get; set; }
    Property Value
    Type Description
    Boolean

    position

    The position, in meters, of the object in real-world space. This will be available if trackingState contains the Position flag.

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

    rotation

    The rotation, in radians, of the object in real-world space. This will be available if trackingState contains the Rotation flag.

    Declaration
    public Quaternion rotation { readonly get; set; }
    Property Value
    Type Description
    Quaternion

    trackingState

    A series of flags that identify which tracking values currently have data. That data can be measured by the real world or estimated when tracking is inhibited.

    Declaration
    public InputTrackingState trackingState { readonly get; set; }
    Property Value
    Type Description
    InputTrackingState

    velocity

    The velocity, in meters per second, of the object in real-world space. This will be available if trackingState contains the Velocity flag.

    Declaration
    public Vector3 velocity { readonly get; set; }
    Property Value
    Type Description
    Vector3
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Tuesday, March 7, 2023
    Terms of use