---
title: shouldEnableLimits
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skphysicsjointpin/shouldenablelimits
---

# shouldEnableLimits

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

## Declaration

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

## Discussion

Discussion The default value is false. If true, the lowerAngleLimit and upperAngleLimit properties are used to limit the angle of the pin joint.

## See Also

### Configuring a Pin Joint

- [rotationSpeed](spritekit/skphysicsjointpin/rotationspeed.md)
- [lowerAngleLimit](spritekit/skphysicsjointpin/loweranglelimit.md)
- [upperAngleLimit](spritekit/skphysicsjointpin/upperanglelimit.md)
- [frictionTorque](spritekit/skphysicsjointpin/frictiontorque.md)
