# distance

> The distance separating the two ends of the joint.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

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

### Remarks

Additional Resources: [\_anchor](/engine/6000.7/script-reference/unityengine/anchoredjoint2d/anchor.md), [\_connectedAnchor](/engine/6000.7/script-reference/unityengine/anchoredjoint2d/connectedanchor.md)
