Contents

minimumLinearLimit

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

Declaration

var minimumLinearLimit: CGFloat { get set }

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