Struct Pose
Represents a tracked object in real-world space. All poses are given in the same root space, dictated by TrackingOriginModeFlags.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.Input
Assembly: Unity.XR.OpenXR.dll
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 |
---|---|
bool |
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 |