ARVRPositionalTracker
Inherits: Reference < Object A tracked object.
Description
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. ARVRServer. 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.
Tutorials
- XR (AR/VR)
Properties
Methods
Enumerations
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.
Property Descriptions
- float rumble
0.0to1.0with precision.01.Method Descriptions
- TrackerHand get_hand ( ) const TrackerHand constants.
- int 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.
- Mesh get_mesh ( ) const Returns the mesh related to a controller or anchor point if one is available.
- String get_name ( ) const Returns the controller or anchor point’s name if available.
- Basis get_orientation ( ) const Returns the controller’s orientation matrix.
- Vector3 get_position ( ) const Returns the world-space controller position.
- int get_tracker_id ( ) const ARVRController and ARVRAnchor nodes.
- bool get_tracks_orientation ( ) const
trueif this device tracks orientation.
- bool get_tracks_position ( ) const
trueif this device tracks position.
- Transform get_transform ( bool adjust_by_reference_frame ) const Returns the transform combining this device’s orientation and position.
- TrackerType get_type ( ) const Returns the tracker’s type.
