Documentation
    Preparing search index...

    Variable RIGID_BODY_SERIALIZERConst

    RIGID_BODY_SERIALIZER: ComponentSerializerShape<RigidBody> = ...

    The §79 serializer for RigidBody (§23, §26, §31, PH-17).

    import { Collider, RigidBody, RIGID_BODY_SERIALIZER, COLLIDER_SERIALIZER } from "@fourjs/physics";

    const registry = createDefaultComponentSerializers()
    .register(RigidBody, RIGID_BODY_SERIALIZER)
    .register(Collider, COLLIDER_SERIALIZER);

    or, from an application, one call: registerSceneNodeTypes() in the umbrella four package registers both alongside the UI node types.

    Registering the reloaded node with a world (world.addBody(node)) is a separate, explicit step. A document is a scene, not a simulation (§79): body ids, contact manifolds, and warm-start impulses are assigned by the act of registering, and reproducing a solve across a save needs a §34 snapshot beside the §79 document.