intersectBoundsFirst

open fun intersectBoundsFirst(bounds: DAabb3): ColliderKey?

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.

Return

The first result found, stopping the query after this result.

Parameters

bounds

The axis-aligned bounds to test against.