intersectBounds

abstract fun intersectBounds(bounds: DAabb3, fn: (ColliderKey) -> PhysicsQuery.Result)

Gets every collider whose broad-phase bounding box (Collider.bounds) intersects with bounds, in no specific ordering.

This is the fastest and cheapest query, as it only reads the broad-phase. Use this if you only need a coarse set of colliders in a general area.

Parameters

bounds

The axis-aligned bounds to test against.

fn

The callback to run for each result, allowing you to continue or stop the query.