Struct ARVRPositionalTracker

A tracked object.

struct ARVRPositionalTracker ;

An instance of this object represents a device that is tracked, such as a controller or anchor point. HMDs aren't represented here as they are handled internally. As controllers are turned on and the AR/VR interface detects them, instances of this object are automatically added to this list of active tracking objects accessible through the ARVRServer. The ARVRController and ARVRAnchor both consume objects of this type and should be used in your project. The positional trackers are just under-the-hood objects that make this all work. These are mostly exposed so that GDNative-based interfaces can interact with them.

Properties

NameTypeDescription
rumble[get, set] doubleThe degree to which the tracker rumbles. Ranges from 0.0 to 1.0 with precision .01.

Methods

NameDescription
_setJoyId
_setMesh
_setName
_setOrientation
_setRwPosition
_setType
getHand Returns the hand holding this tracker, if known. See trackerhand constants.
getJoyId If this is a controller that is being tracked, the controller will also be represented by a joystick entry with this ID.
getMesh Returns the mesh related to a controller or anchor point if one is available.
getName Returns the controller or anchor point's name if available.
getOrientation Returns the controller's orientation matrix.
getPosition Returns the world-space controller position.
getRumble
getTracksOrientation Returns true if this device tracks orientation.
getTracksPosition Returns true if this device tracks position.
getTransform Returns the transform combining this device's orientation and position.
getType Returns the tracker's type.
setRumble

Enums

NameDescription
Constants
TrackerHand