<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKReachConstraints/init(lowerAngleLimit:upperAngleLimit:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKReachConstraints(im)initWithLowerAngleLimit:upperAngleLimit:"
  },
  "title" : "init(lowerAngleLimit:upperAngleLimit:)"
}
-->

# init(lowerAngleLimit:upperAngleLimit:)

Initializes a new reach constraint object.

```
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

A newly initialized reach constraint.

## Discussion

When a reach action is executed, a node’s [`zRotation`](/documentation/SpriteKit/SKNode/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`](/documentation/SpriteKit/SKNode/reachConstraints) property.

---

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)