QuadTreeCollisionDetection constructor

QuadTreeCollisionDetection({
  1. required Rect mapDimensions,
  2. required ExternalBroadphaseCheck onComponentTypeCheck,
  3. required ExternalMinDistanceCheck minimumDistanceCheck,
  4. int maxObjects = 25,
  5. int maxDepth = 10,
})

Implementation

QuadTreeCollisionDetection({
  required Rect mapDimensions,
  required ExternalBroadphaseCheck onComponentTypeCheck,
  required ExternalMinDistanceCheck minimumDistanceCheck,
  int maxObjects = 25,
  int maxDepth = 10,
}) : super(
        broadphase: QuadTreeBroadphase(
          mainBoxSize: mapDimensions,
          maxObjects: maxObjects,
          maxDepth: maxDepth,
          broadphaseCheck: onComponentTypeCheck,
          minimumDistanceCheck: minimumDistanceCheck,
        ),
      );