# PhysicsEvents.ContactFilterEvent

> An event produced when a pair of PhysicsShape come into contact. This can be used to decide if a contact between the two shapes should be created or not.

## Definition

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

```csharp
public readonly struct PhysicsEvents.ContactFilterEvent
```

## Properties

| Property                                                                                                                       | Description                               |
| ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------- |
| [physicsWorld](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsevents/contactfilterevent/physicsworld.md) | The physics world both shapes are within. |
| [shapeA](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsevents/contactfilterevent/shapea.md)             | One of the shapes involved in the event.  |
| [shapeB](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsevents/contactfilterevent/shapeb.md)             | The other shape involved in the event.    |
