Interface IBroadPhaseFilter
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
proxyAIDynamicTreeProxyThe first proxy.
proxyBIDynamicTreeProxyThe second proxy.
Returns
- bool
trueto test the shapes for contact;falseto skip this pair.