org.jbox2d.dynamics
Interface ContactFilter
- All Known Implementing Classes:
- DefaultContactFilter
public interface ContactFilter
Implement this class to provide collision filtering. In other words, you can implement
this class if you want finer control over contact creation.
Field Summary |
static ContactFilter |
DEFAULT_FILTER
Default contact filter, using groupIndex, maskBits and categoryBits as detailed
in Box2d manual. |
Method Summary |
boolean |
shouldCollide(Shape shape1,
Shape shape2)
Return true if contact calculations should be performed between these two shapes. |
DEFAULT_FILTER
static final ContactFilter DEFAULT_FILTER
- Default contact filter, using groupIndex, maskBits and categoryBits as detailed
in Box2d manual.
shouldCollide
boolean shouldCollide(Shape shape1,
Shape shape2)
- Return true if contact calculations should be performed between these two shapes.
Warning: for performance reasons this is only called when the AABBs begin to overlap.