Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ARVRPositionalTracker¶
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¶
../tutorials/vr/index
Propiedades¶
|
Métodos¶
get_hand ( ) const |
|
get_joy_id ( ) const |
|
get_mesh ( ) const |
|
get_name ( ) const |
|
get_orientation ( ) const |
|
get_position ( ) const |
|
get_tracker_id ( ) const |
|
get_tracks_orientation ( ) const |
|
get_tracks_position ( ) const |
|
get_transform ( bool adjust_by_reference_frame ) const |
|
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¶
float rumble
Default |
|
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¶
TrackerHand get_hand ( ) const
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.
String get_name ( ) const
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.
Vector3 get_position ( ) const
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.
Devuelve la transformación combinando la orientación y la posición de este dispositivo.
TrackerType get_type ( ) const
Devuelve el tipo de rastreador.