QuadTreeBroadphase constructor
QuadTreeBroadphase({
- required Rect mainBoxSize,
- required ExternalBroadphaseCheck broadphaseCheck,
- required ExternalMinDistanceCheck minimumDistanceCheck,
- int maxObjects = 25,
- 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,
);