class

Flock::Collision::BVH2D

Inherits Flock::Collision::Broadphase2D < Reference < Object

Bounding-volume-hierarchy broadphase: builds an AABB tree (median split on the widest axis) each frame and self-queries it for overlapping leaf pairs. Prunes empty space well for clustered or large scenes.

Constructors

Instance methods

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

Nested types