Table of Contents

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, IOverlapCallback

Parameters

bounds BoundingBox

The world-space box to test against.

callback TCallback

The callback, passed by reference.

filter QueryFilter?

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.