Beispiel #1
0
 public ContactManager(World argPool, BroadPhase broadPhase)
 {
     m_contactList = null;
     m_contactCount = 0;
     m_contactFilter = new ContactFilter();
     m_contactListener = null;
     m_broadPhase = broadPhase;
     pool = argPool;
 }
Beispiel #2
0
 /**
    * Register a contact filter to provide specific control over collision. Otherwise the default
    * filter is used (_defaultFilter). The listener is owned by you and must remain in scope.
    *
    * @param filter
    */
 public void setContactFilter(ContactFilter filter)
 {
     m_contactManager.m_contactFilter = filter;
 }