A tracked object.
    public class ARVRPositionalTracker : Object

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.

Inheritance Chain


    public ARVRPositionalTracker()


    public float Rumble { get; set; }

The degree to which the tracker rumbles. Ranges from 0.0 to 1.0 with precision .01.


    public TrackerHand GetHand()

Returns the hand holding this tracker, if known. See TRACKER_* constants.

    public int GetJoyId()

If this is a controller that is being tracked, the controller will also be represented by a joystick entry with this ID.

    public Mesh GetMesh()

Returns the mesh related to a controller or anchor point if one is available.

    public string GetName()

Returns the controller or anchor point’s name if available.

    public Basis GetOrientation()

Returns the controller’s orientation matrix.

    public Vector3 GetPosition()

Returns the world-space controller position.

    [Obsolete("GetRumble is deprecated. Use the Rumble property instead.")]
    public float GetRumble()

Getter for Rumble

    public bool GetTracksOrientation()

Returns true if this device tracks orientation.

    public bool GetTracksPosition()

Returns true if this device tracks position.

    public Transform GetTransform(bool adjustByReferenceFrame)

Returns the transform combining this device’s orientation and position.

    public new ARVRServer.TrackerType GetType()

Returns the tracker’s type.

    [Obsolete("SetRumble is deprecated. Use the Rumble property instead.")]
    public void SetRumble(float rumble)

Setter for Rumble

Inner Types


Name Value Description
HandUnknown 0 The hand this tracker is held in is unknown or not applicable.
LeftHand 1 This tracker is the left hand controller.
RightHand 2 This tracker is the right hand controller.