# TestOverlapPoint

> Tests if the provided point overlaps any shapes. See PhysicsQuery.QueryFilter.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

## TestOverlapPoint(Vector2, QueryFilter)

Tests if the provided point overlaps any shapes. See [PhysicsQuery.QueryFilter](/engine/6000.7/script-reference/unity/u2d/physics/physicsquery/queryfilter.md).

```csharp
public bool TestOverlapPoint(Vector2 point, PhysicsQuery.QueryFilter filter)
```

### Parameters

**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The point used to check overlap. This must be in world-space.**** (\[QueryFilter]\(/engine/6000.7/script-reference/unity/u2d/physics/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. |

## TestOverlapPoint(ReadOnlySpan\<Vector2>, QueryFilter)

Tests if the provided point(s) overlap any shapes. See [PhysicsQuery.QueryFilter](/engine/6000.7/script-reference/unity/u2d/physics/physicsquery/queryfilter.md).

```csharp
public bool TestOverlapPoint(ReadOnlySpan<Vector2> points, PhysicsQuery.QueryFilter filter)
```

### Parameters

**** (\[ReadOnlySpan\<Vector2>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): The points used to check overlap. These must be in world-space.**** (\[QueryFilter]\(/engine/6000.7/script-reference/unity/u2d/physics/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. |
