ARVRPositionalTracker
Category: Core
A tracked object
Properties
Enumerations
enum TrackerHand:
- TRACKER_HAND_UNKNOWN = 0 — The hand this tracker is held in is unknown or not applicable.
- TRACKER_LEFT_HAND = 1 — This tracker is the left hand controller.
- TRACKER_RIGHT_HAND = 2 — This tracker is the right hand controller.
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 fully handled internally.
The ARVRController and ARVRAnchor both consume objects of this type and should be the objects you use in game. The positional trackers are just the under the hood objects that make this all work and are mostly exposed so GDNative based interfaces can interact with them.
Property Descriptions
- rumble
The degree to which the tracker rumbles. Ranges from to with precision .
- TrackerHand get_hand ( ) const
Returns the hand holding this tracker, if known. See TRACKER_* constants.
- get_joy_id ( ) const
If this is a controller that is being tracked the controller will also be represented by a joystick entry with this id.
- Basis get_orientation ( ) const
Returns the controller’s orientation matrix.
- get_position ( ) const
Returns the world-space controller position.
- bool get_tracks_orientation ( ) const
Returns if this device tracks orientation.
- get_tracks_position ( ) const
Returns if this device tracks position.
- Transform get_transform ( adjust_by_reference_frame ) const
- TrackerType get_type ( ) const
Returns the tracker’s type.