---
title: "init(lowerAngleLimit:upperAngleLimit:)"
framework: spritekit
role: symbol
role_heading: Initializer
path: "spritekit/skreachconstraints/init(loweranglelimit:upperanglelimit:)"
---

# init(lowerAngleLimit:upperAngleLimit:)

Initializes a new reach constraint object.

## Declaration

```swift
init(lowerAngleLimit: CGFloat, upperAngleLimit: CGFloat)
```

## Parameters

- `lowerAngleLimit`: The minimum angle that the node can have when it is rotated by a reach event.
- `upperAngleLimit`: The maximum angle that the node can have when it is rotated by a reach event.

## Return Value

Return Value A newly initialized reach constraint.

## Discussion

Discussion When a reach action is executed, a node’s zRotation property may be changed by the action to satisfy the reach action. Any value calculated by the reach action for a node is always inside the range specified by the reach constraint attached to the node’s reachConstraints property.

## See Also

### Working with Reach Constraints

- [lowerAngleLimit](spritekit/skreachconstraints/loweranglelimit.md)
- [upperAngleLimit](spritekit/skreachconstraints/upperanglelimit.md)
