26 public void SetBlend(
float blend,
float deltaTime = 1f) {
27 delay = deltaTime * blend / (1f - blend);
30 public float Update(
float input,
float deltaTime = 1f) {
31 if (deltaTime > 0f && !
reset) {
32 float alpha =
delay / deltaTime;
33 float blend = alpha / (1f + alpha);
Time-step independent exponential smoothing.
void SetBlend(float blend, float deltaTime=1f)
SmoothedFloat(float blend=0f, float deltaTime=1f)
float Update(float input, float deltaTime=1f)