API reference
API reference
Select your platform
No SDKs available
No versions available

TrackingSpacePose Struct

Tracking space position and rotation of the anchor.

Overview

Properties

Vector3?
Position in tracking space of the anchor.
Quaternion?
Rotation in tracking space of the Anchor.
bool
Indicates whether or not the position is currently tracked.
bool
Indicates whether or not the rotation is currently tracked.

Public Member Functions

Vector3?
ComputeWorldPosition
( Camera camera )
Computes the world space position of the anchor.
Quaternion?
ComputeWorldRotation
( Camera camera )
Computes the world space rotation of the anchor.

Details

Detailed Description

Position and rotation are both nullable Vector3 and Quaternion and might be null independently if one of them or both are invalid.
See Also:
Position, IsPositionTracked, ComputeWorldPosition, Rotation, IsRotationTracked, ComputeWorldRotation

Properties

Vector3? OVRLocatable.TrackingSpacePose.Position
Position in tracking space of the anchor.
Null if and when the position is invalid
See Also:
Rotation, ComputeWorldPosition, ComputeWorldRotation
Quaternion? OVRLocatable.TrackingSpacePose.Rotation
Rotation in tracking space of the Anchor.
Null if and when the rotation is invalid
See Also:
Position, ComputeWorldPosition, ComputeWorldRotation
bool OVRLocatable.TrackingSpacePose.IsPositionTracked
Indicates whether or not the position is currently tracked.
bool OVRLocatable.TrackingSpacePose.IsRotationTracked
Indicates whether or not the rotation is currently tracked.

Member Functions

Vector3? OVRLocatable.TrackingSpacePose.ComputeWorldPosition
( Camera camera )
Computes the world space position of the anchor.
Parameters
camera
A Camera component that will be use to compute the transform to world space
Returns
The nullable Vector3 position in world space which may be null if and when Position is invalid or head pose is invalid.
See Also:
Position, Rotation, ComputeWorldRotation
Exceptions
ArgumentNullException
If camera is null
Quaternion? OVRLocatable.TrackingSpacePose.ComputeWorldRotation
( Camera camera )
Computes the world space rotation of the anchor.
Parameters
camera
A Camera component that will be use to compute the transform to world space
Returns
The nullable Quaternion rotation in world space which may be null if and when Rotation is invalid or if head rotation is invalid.
See Also:
Position, Rotation, ComputeWorldPosition
Exceptions
ArgumentNullException
If camera is null
Did you find this page helpful?
Thumbs up icon
Thumbs down icon