Method OverlapBounds<TCallback>
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
OverlapBounds<TCallback>(BoundingBox, ref TCallback, QueryFilter?)
Finds every shape whose bounding box overlaps the given box.
public void OverlapBounds<TCallback>(BoundingBox bounds, ref TCallback callback, QueryFilter? filter = null) where TCallback : struct, IOverlapCallbackParameters
boundsBoundingBox-
The world-space box to test against.
callbackTCallback-
The callback, passed by reference.
filterQueryFilter?-
Which shapes may be reported, or null for everything.
Type Parameters
TCallback-
The callback type. A struct, so nothing is allocated.
Remarks
This is a broad-phase query, so it tests bounding boxes rather than geometry and can report shapes that do not really overlap. Narrow it yourself if you need exactness.
Exceptions
- ObjectDisposedException
-
The world has been disposed.