# PhysicsCallbacks.IContactFilterCallback

> An interface that when implemented by a Object, can be called as a target when a PhysicsShape has PhysicsShape.contactFilterCallbacks set to true. The PhysicsWorld the PhysicsShape is in also has to have its PhysicsWorld.contactFilterCallbacks set to true.

## Definition

* **Type:** Interface
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public interface PhysicsCallbacks.IContactFilterCallback
```

## Methods

| Method                                                                                                                                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [OnContactFilter2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicscallbacks/icontactfiltercallback/oncontactfilter2d.md) | Called when a pair of shapes are determined to be in contact. This is called to decide if a contact will be created for these shapes, allowing contact creation to be bypassed so a contact will not go to the solver. This is only called if the [PhysicsWorld](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld.md) has [PhysicsWorld.contactFilterCallbacks](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld/contactfiltercallbacks.md) set to true. An event is only produced if one of the [PhysicsShape](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape.md) have [PhysicsShape.contactFilterCallbacks](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/contactfiltercallbacks.md) set to true. This is called for both triggers and non-triggers but only with Dynamic bodies. |
