Package org.jbox2d.dynamics
Class ContactManager
- java.lang.Object
-
- org.jbox2d.dynamics.ContactManager
-
- All Implemented Interfaces:
PairCallback
public class ContactManager extends java.lang.Object implements PairCallback
Delegate of World.
-
-
Field Summary
Fields Modifier and Type Field Description BroadPhase
m_broadPhase
int
m_contactCount
ContactFilter
m_contactFilter
Contact
m_contactList
ContactListener
m_contactListener
private World
pool
-
Constructor Summary
Constructors Constructor Description ContactManager(World argPool, BroadPhaseStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPair(java.lang.Object proxyUserDataA, java.lang.Object proxyUserDataB)
Broad-phase callback.void
collide()
This is the top level collision call for the time step.void
destroy(Contact c)
void
findNewContacts()
-
-
-
Field Detail
-
m_broadPhase
public BroadPhase m_broadPhase
-
m_contactList
public Contact m_contactList
-
m_contactCount
public int m_contactCount
-
m_contactFilter
public ContactFilter m_contactFilter
-
m_contactListener
public ContactListener m_contactListener
-
pool
private final World pool
-
-
Constructor Detail
-
ContactManager
public ContactManager(World argPool, BroadPhaseStrategy strategy)
-
-
Method Detail
-
addPair
public void addPair(java.lang.Object proxyUserDataA, java.lang.Object proxyUserDataB)
Broad-phase callback.- Specified by:
addPair
in interfacePairCallback
- Parameters:
proxyUserDataA
-proxyUserDataB
-
-
findNewContacts
public void findNewContacts()
-
destroy
public void destroy(Contact c)
-
collide
public void collide()
This is the top level collision call for the time step. Here all the narrow phase collision is processed for the world contact list.
-
-