org.jbox2d.dynamics
Class DefaultContactFilter

java.lang.Object
  extended by org.jbox2d.dynamics.DefaultContactFilter
All Implemented Interfaces:
ContactFilter

public class DefaultContactFilter
extends Object
implements ContactFilter

Default sample implementation of ContactFilter.


Field Summary
 
Fields inherited from interface org.jbox2d.dynamics.ContactFilter
DEFAULT_FILTER
 
Constructor Summary
DefaultContactFilter()
           
 
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
 

Constructor Detail

DefaultContactFilter

public DefaultContactFilter()
Method Detail

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