ARVRPositionalTracker

Inherits: Reference < Object

Un objeto rastreado.

Descripción

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.

Tutoriales

Propiedades

float

rumble

0.0

Métodos

TrackerHand

get_hand ( ) const

int

get_joy_id ( ) const

Mesh

get_mesh ( ) const

String

get_name ( ) const

Basis

get_orientation ( ) const

Vector3

get_position ( ) const

int

get_tracker_id ( ) const

bool

get_tracks_orientation ( ) const

bool

get_tracks_position ( ) const

Transform

get_transform ( bool adjust_by_reference_frame ) const

TrackerType

get_type ( ) const

Enumeraciones

enum TrackerHand:

  • TRACKER_HAND_UNKNOWN = 0 --- La mano con la que se sostiene este rastreador es desconocida o no aplicable.

  • TRACKER_LEFT_HAND = 1 --- Este rastreador es el controlador de la mano izquierda.

  • TRACKER_RIGHT_HAND = 2 --- Este rastreador es el controlador de la mano derecha.

Descripciones de Propiedades

Default

0.0

Setter

set_rumble(value)

Getter

get_rumble()

El grado en que el rastreador retumba. Va desde 0.0 hasta 1.0 con precisión .01.

Descripciones de Métodos

Devuelve la mano que sostiene este rastreador, si se conoce. Ver las constantes de TrackerHand.


  • int get_joy_id ( ) const

Si se trata de un controlador que está siendo rastreado, el controlador también será representado por una entrada de joystick con esta identificación.


  • Mesh get_mesh ( ) const

Devuelve la malla relacionada con un controlador o punto de anclaje, si lo hay.


Devuelve el nombre del controlador o del punto de anclaje si está disponible.


  • Basis get_orientation ( ) const

Devuelve la matriz de orientación del controlador.


Devuelve la posición del controlador espacio-mundo.


  • int get_tracker_id ( ) const

Returns the internal tracker ID. This uniquely identifies the tracker per tracker type and matches the ID you need to specify for nodes such as the ARVRController and ARVRAnchor nodes.


  • bool get_tracks_orientation ( ) const

Devuelve true si este dispositivo rastrea la orientación.


  • bool get_tracks_position ( ) const

Devuelve true si este dispositivo rastrea la posición.


  • Transform get_transform ( bool adjust_by_reference_frame ) const

Devuelve la transformación combinando la orientación y la posición de este dispositivo.


Devuelve el tipo de rastreador.