Documentation
    Preparing search index...

    Interface ReplaySnapshot

    A solver snapshot plus §34's validity key.

    Structurally identical to @fourjs/physics's PhysicsSnapshot; see the module note on why it is re-declared instead of imported.

    interface ReplaySnapshot {
        adapterName: string;
        adapterVersion: string;
        configuration?: unknown;
        data: ArrayBuffer;
    }
    Index
    adapterName: string

    The solver adapter's name at capture time, e.g. "rapier2d".

    adapterVersion: string

    The solver adapter's version at capture time.

    configuration?: unknown

    The world configuration the bytes were captured under — §34's "a snapshot is valid only for the same adapter, adapter version, and world configuration" (2026-08-06, PH-6).

    unknown, deliberately: PhysicsSnapshot types this as PhysicsSnapshotConfiguration, and naming that type would need an edge to @fourjs/physics this package may not have. The recorder validates it as JSON and carries it (@fourjs/diagnostics!ReplayRecording.worldConfiguration); the player hands it back; only the solver reads a field of it.

    Optional because two legitimate producers cannot supply one: a target that has no configuration to report, and snapshots this package reconstructs from a recording that predates the field.

    data: ArrayBuffer

    The adapter's opaque bytes (§34).