AudioListener3D

Hereda: Node3D < Node < Object

Sobrescribe los sonidos de localización que se escuchan.

Descripción

Once added to the scene tree and enabled using make_current(), this node will override the location sounds are heard from. This can be used to listen from a location different from the Camera3D.

Propiedades

DopplerTracking

doppler_tracking

0

Métodos

void

clear_current()

Transform3D

get_listener_transform() const

bool

is_current() const

void

make_current()


Enumeraciones

enum DopplerTracking: 🔗

DopplerTracking DOPPLER_TRACKING_DISABLED = 0

Desactiva la simulación del efecto Doppler (por defecto).

DopplerTracking DOPPLER_TRACKING_IDLE_STEP = 1

Simulate Doppler effect by tracking positions of objects that are changed in _process. Changes in the relative velocity of this listener compared to those objects affect how audio is perceived (changing the audio's AudioStreamPlayer3D.pitch_scale).

DopplerTracking DOPPLER_TRACKING_PHYSICS_STEP = 2

Simulate Doppler effect by tracking positions of objects that are changed in _physics_process. Changes in the relative velocity of this listener compared to those objects affect how audio is perceived (changing the audio's AudioStreamPlayer3D.pitch_scale).


Descripciones de Propiedades

DopplerTracking doppler_tracking = 0 🔗

If not DOPPLER_TRACKING_DISABLED, this listener will simulate the Doppler effect for objects changed in particular _process methods.

Note: The Doppler effect will only be heard on AudioStreamPlayer3Ds if AudioStreamPlayer3D.doppler_tracking is not set to AudioStreamPlayer3D.DOPPLER_TRACKING_DISABLED.


Descripciones de Métodos

void clear_current() 🔗

Desactiva la escucha para usar la escucha de la cámara actual en su lugar.


Transform3D get_listener_transform() const 🔗

Returns the listener's global orthonormalized Transform3D.


bool is_current() const 🔗

Returns true if the listener was made current using make_current(), false otherwise.

Note: There may be more than one AudioListener3D marked as "current" in the scene tree, but only the one that was made current last will be used.


void make_current() 🔗

Habilita el listener. Esto anulará el listener de la cámara actual.