org.jbox2d.callbacks
Class ContactFilter
java.lang.Object
org.jbox2d.callbacks.ContactFilter
public class ContactFilter
- extends Object
Implement this class to provide collision filtering. In other words, you can implement
this class if you want finer control over contact creation.
- Author:
- Daniel Murphy
Method Summary |
boolean |
shouldCollide(Fixture fixtureA,
Fixture fixtureB)
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 |
ContactFilter
public ContactFilter()
shouldCollide
public boolean shouldCollide(Fixture fixtureA,
Fixture fixtureB)
- Return true if contact calculations should be performed between these two shapes.
- Parameters:
fixtureA
- fixtureB
-
- Returns:
Copyright © 2013. All Rights Reserved.