class

Flock::Collision::Broadphase2D

Inherits Reference < Object

Broadphase interface: clear, insert each body's AABB, then collect_pairs returns candidate index pairs (i < j) for the narrowphase to confirm.

It returns an array rather than yielding because a yielding method cannot be dispatched through this abstract base (Crystal inlines yields at the call site).

Instance methods

clear
Source
collect_pairs
Source
insert(index : Int32, aabb : AABB2D) : Nil
Source