API

Function expDampFactor

  • Exponential damping weight for one frame, matching the frame-rate-independent easing used by core ArcRotateCamera: 1 - 2^(-deltaSeconds / factor). Feed the returned value as the t of a lerp/damp so the same motion plays identically regardless of frame rate.

    Parameters

    • deltaSeconds: number

      Elapsed time this frame, in seconds. Non-positive values return 0 (no progress), so a stalled or backwards frame delta never moves the value the wrong way.

    • factor: number

      Smoothing time constant. Smaller is snappier, larger is slower. Values <= 0 return 1 (snap immediately to the goal).

    Returns number

    The per-frame interpolation weight in [0, 1].