collisionDetection property

  1. @override
QuadTreeCollisionDetection get collisionDetection
override

Implementation

@override
QuadTreeCollisionDetection get collisionDetection => _collisionDetection;
  1. @override
set collisionDetection (CollisionDetection<ShapeHitbox, QuadTreeBroadphase> cd)
override

Implementation

@override
set collisionDetection(
  CollisionDetection<ShapeHitbox, QuadTreeBroadphase> cd,
) {
  if (cd is! QuadTreeCollisionDetection) {
    throw 'Must be QuadTreeCollisionDetection!';
  }
  _collisionDetection = cd;
}