Table of Contents

Interface IBroadPhaseFilter

Namespace
Jitter2.Collision
Assembly
Jitter2.dll

Decides which pairs of objects should be checked for collisions.

public interface IBroadPhaseFilter

Remarks

Use BroadPhaseFilter to exclude pairs, apply collision layers, or handle custom proxy types before shapes are tested for contact.

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 test the shapes for contact; false to skip this pair.