ce) {
            cohesion.x = (cohesion.x / steerMagnitude) * maxForce;
            cohesion.y = (cohesion.y / steerMagnitude) * maxForce;
          }
          cohesion.x *= cohesionWeight;
          cohesion.y *= cohesionWeight;
        }
        if (dogAvoidanceCount > 0) {
          dogAvoidance.x /= dogAvoidanceCount;
          dogAvoidance.y /= dogAvoidanceCount;
          dogAvoidance.x *= dogAvoidanceWeight;
          dogAvoidance.y *= dogAvoidanceWeight;
        }
        if (wolfAvoidanceCount > 