Table of Contents

Interface IBroadPhaseFilter

Namespace
Jitter2.Collision
Assembly
Jitter2.dll

Provides a hook into the broadphase collision detection pipeline.

public interface IBroadPhaseFilter

Remarks

Implement this interface to intercept shape pairs before narrowphase detection. This can be used to filter out specific pairs, implement custom collision layers, or handle collisions for custom proxy types. See BroadPhaseFilter.

Methods

Filter(IDynamicTreeProxy, IDynamicTreeProxy)

Called for each pair of proxies whose bounding boxes overlap.

[CallbackThread(ThreadContext.Any)]
bool Filter(IDynamicTreeProxy proxyA, IDynamicTreeProxy proxyB)

Parameters

proxyA IDynamicTreeProxy

The first proxy.

proxyB IDynamicTreeProxy

The second proxy.

Returns

bool

true to continue with narrowphase detection; false to skip this pair.