The mode used for the ContactFilter when determining if two PhysicsShape can contact. See PhysicsCoreSettings2D.contactFilterMode.
| Property | Description |
|---|---|
| Both | This mode will produce a contact if both PhysicsShape agree, effectively an AND operation. A contact will be produced if the following is true: (contactFilterA.contacts AND-MASK contactFilterB.categories) AND (contactFilterA.categories AND-MASK contactFilterB.contacts). How the PhysicsShape.ContactFilter.groupIndex is used is determined by ContactFilterGroupMode. |
| Either | This mode will produce a contact if either PhysicsShape agree, effectively an OR operation. A contact will be produced if the following is true: (contactFilterA.contacts AND-MASK contactFilterB.categories ) OR (contactFilterA.categories AND-MASK contactFilterB.contacts). How the PhysicsShape.ContactFilter.groupIndex is used is determined by ContactFilterGroupMode. |