OpenXRAndroidTrackableObjectTracker

Inherits: OpenXRAndroidTrackableTracker < XRPositionalTracker

A tracker for an object (from XR_ANDROID_trackables).

Description

A tracker for an object (from XR_ANDROID_trackables).

See also OpenXRAndroidTrackablesExtension.

Methods

Vector3

get_extents ( )

RID

get_object_context ( )

ObjectLabel

get_object_label ( )


Enumerations

enum ObjectLabel:

ObjectLabel OBJECT_LABEL_UNKNOWN = 0

The object is none of the other types.

ObjectLabel OBJECT_LABEL_KEYBOARD = 1

The object is a keyboard.

ObjectLabel OBJECT_LABEL_MOUSE = 2

The object is a computer mouse.

ObjectLabel OBJECT_LABEL_LAPTOP = 3

The object is a laptop.


Method Descriptions

Vector3 get_extents ( )

Returns the width, height, and depth of the object, as Vector3.x, Vector3.y, and Vector3.z, respectively.

The width, height, and depth are centered on the pose from OpenXRAndroidTrackableTracker.get_center_pose.

For example, a width of 2 means the object extends 1 to the left and right of the center pose.


RID get_object_context ( )

Get the object context that was used to create this tracker.

See also OpenXRAndroidTrackablesObjectExtension.


ObjectLabel get_object_label ( )

Return the ObjectLabel for this tracker.