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...
AudioListener3D¶
覆盖听到声音的位置。
描述¶
一旦添加到场景树并使用 make_current 启用,该节点将覆盖听到声音的位置。这可用于从与 Camera3D 不同的位置聆听。
方法¶
void |
clear_current ( ) |
get_listener_transform ( ) const |
|
is_current ( ) const |
|
void |
make_current ( ) |
方法说明¶
void clear_current ( )
禁用该监听器,用当前相机的监听器代替。
Transform3D get_listener_transform ( ) const
返回该监听器的全局正交归一化 Transform3D。
bool is_current ( ) const
如果使用 make_current 将监听器设为当前,则返回 true
,否则返回 false
。
注意:场景树中标记为“当前”的 AudioListener3D 可能不止一个,但只会使用最后被设置为当前的那个。
void make_current ( )
启用该监听器。将覆盖当前相机的监听器。