overlapAABB

expect fun overlapAABB(aabb: AABB, filter: QueryFilter = QueryFilter.Default, callback: (Shape) -> Boolean): TreeStats

Query an AABB for overlapping shapes. The callback is called for each shape found. Return true from the callback to continue the query, false to stop.

Return

Tree traversal statistics

Parameters

aabb

The axis-aligned bounding box to query

filter

Query filter to select which shapes to test

callback

Called for each overlapping shape. Return true to continue.