Up to date
This page is up to date for Godot 4.3
.
If you still find outdated information, please open an issue.
AudioListener3Dยถ
Inherits: Node3D < Node < Object
Overrides the location sounds are heard from.
Descriptionยถ
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.
Methodsยถ
void |
|
get_listener_transform() const |
|
is_current() const |
|
void |
Method Descriptionsยถ
void clear_current() ๐
Disables the listener to use the current camera's listener instead.
Transform3D get_listener_transform() const ๐
Returns the listener's global orthonormalized Transform3D.
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() ๐
Enables the listener. This will override the current camera's listener.