tune method

void tune(
  1. double stiffness,
  2. double damping
)

Changes how the spring moves from now on, keeping where it is and how fast.

Implementation

void tune(double stiffness, double damping) {
  _stiffness = stiffness;
  _damping = damping;
}