API reference

OVRTracker Class

An infrared camera that tracks the position of a head-mounted display.

Properties

bool isPresent[Get]
If true, a sensor is attached to the system.
bool isPositionTracked[Get]
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.
bool isEnabled[Get]
If this is true and a sensor is available, the system will use position tracking when isPositionTracked is also true.
int count[Get]
Returns the number of sensors currently connected to the system.

Member Functions

Frustum GetFrustum
( int tracker )
Gets the sensor's viewing frustum.
OVRPose GetPose
( int tracker )
Gets the sensor's pose, relative to the head's pose at the time of the last pose recentering.
bool GetPoseValid
( int tracker )
If true, the pose of the sensor is valid and is ready to be queried.
bool GetPresent
( int tracker )