
          let magnitude = Math.sqrt(alignment.x * alignment.x + alignment.y * alignment.y);
          if (magnitude > 0) {
            alignment.x /= magnitude;
            alignment.y /= magnitude;
          }

          alignment.x *= maxSpeed;
          alignment.y *= maxSpeed;
          alignment.x -= currentSheep.vx; // Steer
          alignment.y -= currentSheep.vy;
          //limit force
          let steerMagnitude = Math.sqrt(alignment.x * alignment.x + alignment.y * alignment.y);
          if (s