Documentation
    Preparing search index...

    Interface PhysicsSnapshotConfiguration

    The world configuration recorded in a PhysicsSnapshot (§34).

    Every field here changes what stepping the restored bytes produces, so a mismatch means the restored run is not a continuation of the captured one — the §33/§34 promise — even though the adapter would deserialize the bytes without complaint. Gravity is the resolved 3-tuple, sleeping the resolved §32 record (Appendix A defaults filled in), so two worlds that spell the same configuration differently still compare equal.

    interface PhysicsSnapshotConfiguration {
        determinism: DeterminismLevel;
        dimension: PhysicsDimension;
        gravity: readonly [number, number, number];
        sleeping: SleepingConfig;
        solverIterations?: number;
    }
    Index
    determinism: DeterminismLevel

    The §33 tier the world asked for.

    dimension: PhysicsDimension

    "2d" or "3d" (§21).

    gravity: readonly [number, number, number]

    Resolved world gravity, m/s² (§21, Appendix A).

    sleeping: SleepingConfig

    Resolved §32 sleeping configuration.

    solverIterations?: number

    §28 solver iterations, when the world set them (absent = solver default).