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

OVRTracker Class

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

Properties

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

Methods

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

Inner Struct

Frustum Struct

The (symmetric) visible area in front of the sensor.

Fields

farZ : float
The sensor's maximum supported distance to the HMD.
Signature
float OVRTracker.Frustum.farZ
fov : Vector2
The sensor's horizontal and vertical fields of view in degrees.
Signature
Vector2 OVRTracker.Frustum.fov
nearZ : float
The sensor's minimum supported distance to the HMD.
Signature
float OVRTracker.Frustum.nearZ