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

OVRTracker Class

Represents an infrared camera that tracks the position of a head-mounted display.
The OVRTracker object is stateless and provides a convenient accessor to the tracker properties. Instead of new'ing an OVRTracker, consider using the global OVRTracker accessible via OVRManager.tracker.

Properties

If true, a sensor is attached to the system.
If true, the sensor is actively tracking the HMD's position.
Otherwise the HMD may be temporarily occluded, the system may not support position tracking, etc.
If this is true and a sensor is available, the system will use position tracking when isPositionTracked is also true.
Returns the number of sensors currently connected to the system.

Member Functions

Gets the sensor's viewing frustum.
Parameters
tracker
The index of the tracker.
Returns
Returns the Frustum associated with tracker .
Gets the sensor's pose, relative to the head's pose at the time of the last pose recentering.
If the HMD is not present (OVRManager.isHmdPresent), this method returns the identity pose.
Parameters
tracker
The index of the tracker.
Returns
The pose of the tracker in tracking space, or identity if the HMD is not present.
Gets whether the pose of the specified sensor is valid and is ready to be queried.
Parameters
tracker
The index of the sensor.
Returns
Returns true if the pose of the specified sensor is valid; otherwise false.
Gets whether the specified sensor is currently present.
Parameters
tracker
The index of the sensor.
Returns
Returns true if tracker is present; otherwise, false.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon