---
title: maximumAngularLimit
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnphysicssliderjoint/maximumangularlimit
---

# maximumAngularLimit

The maximum rotation angle between the two bodies, measured in radians relative to their initial orientations.

## Declaration

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

## Discussion

Discussion The default (and maximum) value of this property is M_PI. With this value, the joint can spin counterclockwise (relative to the first body) with no limit. Set both this property and the maximumAngularLimit property to the same value to prevent the bodies from rotating around their anchor points. (Set both properties to 0.0 to fix the bodies in their initial orientations.) Bodies whose orientation is fixed by a sliding joint may still slide, depending on the values of the minimumLinearLimit and maximumLinearLimit properties.

## See Also

### Limiting the Motion of a Slider Joint

- [minimumLinearLimit](scenekit/scnphysicssliderjoint/minimumlinearlimit.md)
- [maximumLinearLimit](scenekit/scnphysicssliderjoint/maximumlinearlimit.md)
- [minimumAngularLimit](scenekit/scnphysicssliderjoint/minimumangularlimit.md)
