Skip to content

Listener

The Listener represents the position and orientation of the player. It is accessed via world.listener and is used for spatialization, occlusion rays, and reflection simulation.

listener.setPosition(position: Vector3Like): void

Sets the listener position in world space.

listener.setOrientation(orientation: QuaternionLike): void

Sets the listener orientation as a quaternion.

listener.setTransform(
position: Vector3Like,
orientation: QuaternionLike,
): void

Sets both position and orientation in one call, then updates the simulator and reflection worker.

listener.setReverb(settings: false | ReverbSettings): void

Enables or disables listener-centric reverb. Requires the world to have been created with reflections enabled.

enabled : boolean — default true.

reverbScale : ThreeBand — per-band reverb scale. Default: [1, 1, 1].