damp method

void damp(
  1. Vec2 other,
  2. double lambda,
  3. double deltaTime
)

Implementation

void damp(Vec2 other, double lambda, double deltaTime) {
  x = MathUtils.damp(x, other.x, lambda, deltaTime);
  y = MathUtils.damp(y, other.y, lambda, deltaTime);
}