---
title: minimumLinearLimit
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnphysicssliderjoint/minimumlinearlimit
---

# minimumLinearLimit

The minimum distance between the anchor points of the two bodies, relative to their initial positions.

## Declaration

```swift
var minimumLinearLimit: CGFloat { get set }
```

## Discussion

Discussion The default value of this property is -INFINITY. With this value, the joint can slide forever in the direction opposite the slider axis. Set both this property and the maximumLinearLimit property to the same value to pin the bodies together at their anchor points. (Set both properties to 0.0 to pin the bodies together at their initial positions.) Bodies pinned together by a sliding joint may still rotate, depending on the values of the minimumAngularLimit and maximumAngularLimit properties.

## See Also

### Limiting the Motion of a Slider Joint

- [maximumLinearLimit](scenekit/scnphysicssliderjoint/maximumlinearlimit.md)
- [minimumAngularLimit](scenekit/scnphysicssliderjoint/minimumangularlimit.md)
- [maximumAngularLimit](scenekit/scnphysicssliderjoint/maximumangularlimit.md)
