# distance

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

## Definition

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

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