Skip to content

Heard beta ​

Interface of @v12-engine/client

ts
export interface Heard

Where a sound is for the listener: the side it is on (-1 to 1) and its place in cells to the right of and behind them

Members ​

behind ​

ts
behind: number;

Cells behind the listener (negative: ahead)

gain ​

ts
gain: number;

How loud the sound is for the listener, from its distance

pan ​

ts
pan: number;

Which side it is heard from, -1 (left) to 1 (right)

ts
right: number;

Cells to the listener's right