<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKPhysicsJointSliding/shouldEnableLimits",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKPhysicsJointSliding(py)shouldEnableLimits"
  },
  "title" : "shouldEnableLimits"
}
-->

# shouldEnableLimits

A Boolean value that indicates whether the sliding joint is restricted so that the objects may only slide a finite distance from the initial anchor point.

```
var shouldEnableLimits: Bool { get set }
```

## Discussion

The default value is <doc://com.apple.documentation/documentation/Swift/false>. If <doc://com.apple.documentation/documentation/Swift/true>, then the [`lowerDistanceLimit`](/documentation/SpriteKit/SKPhysicsJointSliding/lowerDistanceLimit) and [`upperDistanceLimit`](/documentation/SpriteKit/SKPhysicsJointSliding/upperDistanceLimit) properties are used to limit the distance of the sliding joint.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)