The reach constraints to apply to the node when executing a reach action.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Sprite
Kit
Declaration
@NSCopying var reachConstraints: SKReach Constraints? { get set }
Discussion
To use inverse kinematics, create a new SKReach
object and assign it to this property. When a reach action calculates the new positions of this node, the possible values for this node are restricted to the constraints defined by this object. For more information on the inverse kinematic actions, see SKAction
.