# maxDistanceOnly

> Whether to maintain a maximum distance only or not. If not then the absolute distance will be maintained instead.

## Definition

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

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

### Remarks

When true, only the maximum distance is maintained.  When false, the absolute distance is maintained.

Additional Resources: [DistanceJoint2D.distance](/engine/6000.0/script-reference/unityengine/distancejoint2d/distance.md).
