Function expDampFactor
-
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
<= 0return1(snap immediately to the goal).
Returns number
The per-frame interpolation weight in
[0, 1]. - deltaSeconds: number
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 thetof a lerp/damp so the same motion plays identically regardless of frame rate.