# autoConfigureDistance

> Should the distance be calculated automatically?

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/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: [SpringJoint2D.distance](/engine/6000.0/script-reference/unityengine/springjoint2d/distance.md), [AnchoredJoint2D.anchor](/engine/6000.0/script-reference/unityengine/anchoredjoint2d/anchor.md), [AnchoredJoint2D.connectedAnchor](/engine/6000.0/script-reference/unityengine/anchoredjoint2d/connectedanchor.md).
