Listener

Inherits: Spatial < 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 Camera.

Note: There is no 2D equivalent for this node yet.

Method Descriptions

  • void clear_current ( )

Disables the listener to use the current camera’s listener instead.


Returns the listener’s global orthonormalized Transform.


  • bool is_current ( ) const

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

Note: There may be more than one Listener 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.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.