damp static method

num damp(
  1. num x,
  2. num y,
  3. num lambda,
  4. num dt,
)

Implementation

static num damp(num x, num y, num lambda, num dt) {
  return MathUtils.lerp(x, y, 1 - Math.exp(-lambda * dt));
}