Gradually moves current value towards target.
current
target
Current value.
Target value.
Current velocity.
Approximate time to reach the target.
Delta time.
Optional
Max speed (defaults to infinity).
[current, velocity] = math.smoothDamp(current, target, velocity, smoothTime, dt); Copy
[current, velocity] = math.smoothDamp(current, target, velocity, smoothTime, dt);
Gradually moves
current
value towardstarget
.