QuadTreeNodeDebugInfo.init constructor

QuadTreeNodeDebugInfo.init(
  1. QuadTreeCollisionDetection cd
)

Implementation

factory QuadTreeNodeDebugInfo.init(QuadTreeCollisionDetection cd) {
  final node = cd.broadphase.tree._rootNode;
  final rect = cd.broadphase.tree.mainBoxSize;
  return QuadTreeNodeDebugInfo(rect, node, cd);
}