# TestOverlapAABB(PhysicsAABB, QueryFilter)

> Tests if the provided AABB potentially overlaps any shapes. The overlap is between AABB of shapes in the world therefore it may not result in an exact overlap of any shape itself. See PhysicsAABB and PhysicsQuery.QueryFilter.

## Definition

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

```csharp
public bool TestOverlapAABB(PhysicsAABB aabb, PhysicsQuery.QueryFilter filter)
```

### Parameters

**** (\[PhysicsAABB]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb)): The AABB used to check overlap. This must be in world-space.**** (\[QueryFilter]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/queryfilter)): The filter to control the result returned.

### Returns

| Type                                                          | Description                     |
| ------------------------------------------------------------- | ------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | If the query overlaps anything. |
