Listener
Class which represents the listener in the virtual space. You can use the instance to control the listener's position and orientation.
renderer.listener.setPosition(42, 10, 3.1415);
renderer.listener.setRotation(0.2, 0, 0);
Public Interface
Methods
setPosition(x: number, y: number, z: number): void
Sets the sources position in space using cartesian coordinates.
getPosition(): Point3D
Returns the source's current position in cartesian coordinates.
setRotation(yawInRadians: number, pitchInRadians: number, rollInRadians: number): void
Sets the listener's rotation in space using Tait Bryan / Euler angles.
setRotationQuaternion(w: number, x: number, y: number, z: number): void
Sets the listener's rotation in space using Quaternions.