Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Module controls/luxar-orbit-controls/math/auto-dolly

    Auto-dolly (sinusoidal back-and-forth) math.

    The turntable's sibling: where auto-rotation sweeps the camera AROUND the target, auto-dolly breathes it TOWARD and away from it, on a sine. Two tiny pure functions, split out for the same reason auto-rotate.ts is — the interactive dolly (driven by wall-clock time in the update sequencer) and the recorded one (driven by frame index in the capture strategies) both go through dollyScale, so an exported video cannot breathe unlike the preview it was set up from. dollyAmplitudeChangeScale preserves the same baseline when the live amplitude or phase origin changes.

    advanceDollyPhase
    dollyScale
    dollyAmplitudeChangeScale