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

# shouldEnableLimits

A Boolean value that indicates whether the pin joint’s rotation is limited to a specific range of values.

```
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>, the [`lowerAngleLimit`](/documentation/SpriteKit/SKPhysicsJointPin/lowerAngleLimit) and [`upperAngleLimit`](/documentation/SpriteKit/SKPhysicsJointPin/upperAngleLimit) properties are used to limit the angle of the pin 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)