org.jbox2d.dynamics
Class DefaultContactFilter
java.lang.Object
org.jbox2d.dynamics.DefaultContactFilter
- All Implemented Interfaces:
- ContactFilter
public class DefaultContactFilter
- extends Object
- implements ContactFilter
Default sample implementation of ContactFilter.
Method Summary |
boolean |
shouldCollide(Shape shape1,
Shape shape2)
Return true if contact calculations should be performed between these two shapes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultContactFilter
public DefaultContactFilter()
shouldCollide
public boolean shouldCollide(Shape shape1,
Shape shape2)
- Return true if contact calculations should be performed between these two shapes.
If you implement your own collision filter you may want to build from this implementation.
- Specified by:
shouldCollide
in interface ContactFilter