QuadTreeBroadphase constructor

QuadTreeBroadphase({
  1. required Rect mainBoxSize,
  2. required ExternalBroadphaseCheck broadphaseCheck,
  3. required ExternalMinDistanceCheck minimumDistanceCheck,
  4. int maxObjects = 25,
  5. int maxDepth = 10,
})

Implementation

QuadTreeBroadphase({
  required Rect mainBoxSize,
  required this.broadphaseCheck,
  required this.minimumDistanceCheck,
  int maxObjects = 25,
  int maxDepth = 10,
}) : tree = QuadTree<ShapeHitbox>(
        mainBoxSize: mainBoxSize,
        maxObjects: maxObjects,
        maxDepth: maxDepth,
      );