# ClosestPoint(Vector2, out PhysicsShape)

> Calculate the closest point on this chain to the specified point.

## Definition

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

## ClosestPoint(Vector2, PhysicsShape)

```csharp
public Vector2 ClosestPoint(Vector2 point, out PhysicsShape chainSegmentShape)
```

### Parameters

**** (\[Vector2]\(/engine/6000.3/script-reference/unityengine/vector2)): **** (\[PhysicsShape]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape)): A reference to the chain segment shape that the query found.

### Returns

| Type                                                              | Description                                            |
| ----------------------------------------------------------------- | ------------------------------------------------------ |
| [Vector2](/engine/6000.3/script-reference/unityengine/vector2.md) | The closest point on the shape to the specified point. |
