isStopped method

bool isStopped()

Implementation

bool isStopped() {
  return velocity.x.abs() < 0.01 && velocity.y.abs() < 0.01;
}