# autoConfigureDistance

> Should the distance be calculated automatically?

## Definition

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

```csharp
public bool autoConfigureDistance { get; set; }
```

### Remarks

When true, the `distance` property will be calculated automatically to match the distance between the `anchor` and `connectedAnchor` properties.  When false, the distance can be configured using the `distance` property.

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