Interface IBroadPhaseFilter
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
proxyAIDynamicTreeProxyThe first proxy.
proxyBIDynamicTreeProxyThe second proxy.
Returns
- bool
trueto continue with narrowphase detection;falseto skip this pair.