docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrPosef

    A construct representing a position and orientation within a space, with position expressed in meters, and orientation represented as a unit quaternion. OpenXR Spec

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public struct XrPosef

    Constructors

    XrPosef(Vector3, Quaternion)

    Initializes and returns an instance of XrPosef with the provided parameters.

    Declaration
    public XrPosef(Vector3 vec3, Quaternion quaternion)
    Parameters
    Type Name Description
    Vector3 vec3

    vector3 position.

    Quaternion quaternion

    quaternion orientation.

    Fields

    Orientation

    The orientation/rotation of the pose.

    Declaration
    public XrQuaternionf Orientation
    Field Value
    Type Description
    XrQuaternionf

    Position

    The position of the pose.

    Declaration
    public XrVector3f Position
    Field Value
    Type Description
    XrVector3f
    In This Article
    Back to top
    Copyright © 2025 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)