Interface FlushOptions

Per-flush options.

interface FlushOptions {
    onChunkRebuilt?: ((chunk: Chunk) => void);
    onDebrisCreated?: ((bodyId: {
        __brand: "BodyId";
    }, contour: Contour, material: Material) => void);
}

Properties

onChunkRebuilt?: ((chunk: Chunk) => void)

Called once per chunk whose terrain body was created or rebuilt by this flush. Useful for debug overlays.

onDebrisCreated?: ((bodyId: {
    __brand: "BodyId";
}, contour: Contour, material: Material) => void)

Called with the BodyId, contour, and material for every debris body the flush creates.