org.jbox2d.dynamics
Class ContactManager

java.lang.Object
  extended by org.jbox2d.dynamics.ContactManager
All Implemented Interfaces:
PairCallback

public class ContactManager
extends Object
implements PairCallback

Delegate of World - for internal use.


Constructor Summary
ContactManager()
           
 
Method Summary
 void collide()
           
 void destroy(Contact c)
           
 Object pairAdded(Object proxyUserData1, Object proxyUserData2)
          This should return the new pair user data.
 void pairRemoved(Object proxyUserData1, Object proxyUserData2, Object pairUserData)
          This should free the pair's user data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactManager

public ContactManager()
Method Detail

pairAdded

public Object pairAdded(Object proxyUserData1,
                        Object proxyUserData2)
Description copied from interface: PairCallback
This should return the new pair user data. It is okay if the user data is null.

Specified by:
pairAdded in interface PairCallback

pairRemoved

public void pairRemoved(Object proxyUserData1,
                        Object proxyUserData2,
                        Object pairUserData)
Description copied from interface: PairCallback
This should free the pair's user data. In extreme circumstances, it is possible this will be called with null pairUserData because the pair never existed.

Specified by:
pairRemoved in interface PairCallback

destroy

public void destroy(Contact c)

collide

public void collide()