Properties.PropertyType

  • Properties.PropertyType defines constants representing the type of a VR property, such as tracking status, safety region, and floor height.

  • These constants are used to access specific properties of the VR system through the API.

  • The table lists each constant with its corresponding description and associated data type.

  • Developers can utilize these properties to enhance VR experiences and ensure user safety.

  • RECENTER_TRANSFORM, SAFETY_CYLINDER_ENTER_RADIUS, SAFETY_CYLINDER_EXIT_RADIUS, SAFETY_REGION, TRACKING_FLOOR_HEIGHT, and TRACKING_STATUS are the primary constants within Properties.PropertyType.

public static final class Properties.PropertyType

Constants that represent the type of a Property.

Constants

int RECENTER_TRANSFORM The current transform that maps from "sensor" space to the recentered "start" space.
int SAFETY_CYLINDER_ENTER_RADIUS Distance from safety cylinder axis at which the user's state transitions from outside to inside, generating a SAFETY_REGION_ENTER event.
int SAFETY_CYLINDER_EXIT_RADIUS Distance from safety cylinder axis at which the user's state transitions from inside to outside, generating a SAFETY_REGION_EXIT event.
int SAFETY_REGION The type of safety region, if any, currently employed by the headset's tracker.
int TRACKING_FLOOR_HEIGHT The height of the floor, if available, relative to the current start space origin.
int TRACKING_STATUS The current status of the head tracker, if available.

Inherited Methods

Constants

public static final int RECENTER_TRANSFORM

The current transform that maps from "sensor" space to the recentered "start" space. Apps can optionally undo or extend this transform to perform custom recentering logic with the returned pose, but all poses supplied during frame submission are assumed to be in start space. Type: mat4f (represented by float[16])

Constant Value: 2

public static final int SAFETY_CYLINDER_ENTER_RADIUS

Distance from safety cylinder axis at which the user's state transitions from outside to inside, generating a SAFETY_REGION_ENTER event. This value is guaranteed to be less than SAFETY_CYLINDER_EXIT_RADIUS. Type: float

Constant Value: 4

public static final int SAFETY_CYLINDER_EXIT_RADIUS

Distance from safety cylinder axis at which the user's state transitions from inside to outside, generating a SAFETY_REGION_EXIT event. This value is guaranteed to be greater than SAFETY_CYLINDER_ENTER_RADIUS. Type: float

Constant Value: 5

public static final int SAFETY_REGION

The type of safety region, if any, currently employed by the headset's tracker. Type: int (Properties.SafetyRegionType)

Constant Value: 3

public static final int TRACKING_FLOOR_HEIGHT

The height of the floor, if available, relative to the current start space origin. In general, for tracking systems with an eye level origin, this value will be negative. Type: float

Constant Value: 1

public static final int TRACKING_STATUS

The current status of the head tracker, if available. Type: flags (Properties.TrackingStatusFlag).

Constant Value: 6