API

Interface SpatialTarget

Anything exposing a world transform — typically a Lite Mesh or camera. The spatial node reads worldMatrix each update; if onDispose is provided, the node auto-detaches when the target is disposed.

interface SpatialTarget {
    onDispose?: AudioSignal<unknown>;
    worldMatrix: Mat4;
}
Index
onDispose?: AudioSignal<unknown>

Optional dispose signal — firing it auto-detaches the spatial node.

worldMatrix: Mat4

Column-major world matrix of the target.