Constructs a new scalar damper.
The maximum speed at which the value can change.
Smooth interpolation with exponential velocity gain/decay.
The start value.
The target value.
A smoothing factor.
The delta time in seconds.
The interpolated value.
Resets the velocity.
Static
calculateCalculates the exponentional factor which can be reused for interpolations during the same frame.
The delta time in seconds.
The exponentional interpolation factor.
Static
calculateCalculates the Omega coefficient which can be reused for interpolations during the same frame.
A smoothing factor.
Omega.
A scalar damper that retains velocity.
Based on Game Programming Gems 4 Chapter 1.10.