# distance

> The distance between the closest points. This is calculated from _sqrDistance on each access, so prefer that when a squared distance will do.

## Definition

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

```csharp
public float distance { get; }
```
