Documentation
    Preparing search index...

    Variable ORBIT_RIG_SERIALIZERConst

    ORBIT_RIG_SERIALIZER: ComponentSerializerShape<OrbitRig> = ...

    The §79 serializer for OrbitRig (§44, 2026-08-13).

    import { OrbitRig, ORBIT_RIG_SERIALIZER } from "@fourjs/motion";

    registry.register(OrbitRig, ORBIT_RIG_SERIALIZER);

    or, from an application, one call: registerSceneNodeTypes() in the umbrella four package registers it alongside every other component the engine ships.

    The limits are written, not only the live angles, because they are constructor arguments: a reader that restored yaw/pitch/distance into a rig built with the default limits would silently re-clamp a rig authored with wider ones, moving the camera on load. maxDistance is omitted when it is Infinity (JSON has no infinity, and absent already means unbounded), and the two counters — pitchLimitHits, skippedSteps — are diagnostics of a run rather than scene content, so they are not carried and restore to zero.