Function dampScalar
-
Parameters
- current: number
The current value.
- goal: number
The goal value.
- t: number
The interpolation weight (typically from expDampFactor).
Returns number
current + (goal - current) * t. - current: number
The current value.
The goal value.
The interpolation weight (typically from expDampFactor).
current + (goal - current) * t.
Blend a scalar toward a goal by weight
t.