isSettled method

bool isSettled(
  1. Vec2 target, [
  2. double threshold = 0.001
])

Implementation

bool isSettled(Vec2 target, [double threshold = 0.001]) {
  return pos.distanceTo(target) < threshold && velocity.magnitude < threshold;
}