QuadTreeCollisionDetection constructor
QuadTreeCollisionDetection({
- required Rect mapDimensions,
- required ExternalBroadphaseCheck onComponentTypeCheck,
- required ExternalMinDistanceCheck minimumDistanceCheck,
- int maxObjects = 25,
- 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,
),
);