Class BroadPhaseCollisionFilter
- Namespace
- Jitter2.SoftBodies
- Assembly
- Jitter2.dll
A broad-phase filter that handles collisions involving soft body shapes. It delegates collision detection to the narrow phase and registers contacts with the closest rigid body vertices of the soft body.
public class BroadPhaseCollisionFilter : IBroadPhaseFilter
- Inheritance
-
BroadPhaseCollisionFilter
- Implements
- Inherited Members
Constructors
BroadPhaseCollisionFilter(World)
Initializes a new instance of the BroadPhaseCollisionFilter class.
public BroadPhaseCollisionFilter(World world)
Parameters
worldWorldThe world instance.
Methods
Filter(IDynamicTreeProxy, IDynamicTreeProxy)
Called for each pair of proxies whose bounding boxes overlap.
public bool Filter(IDynamicTreeProxy proxyA, IDynamicTreeProxy proxyB)
Parameters
proxyAIDynamicTreeProxyThe first proxy.
proxyBIDynamicTreeProxyThe second proxy.
Returns
- bool
trueto continue with narrowphase detection;falseto skip this pair.