Class

SKReachConstraints

An object that controls the degree of freedom when solving inverse kinematics.

Overview

An SKReachConstraints object is used to describe the range of motion for an SKNode object whenever an inverse kinematic (IK) action is executed. To use reach constraints, create an SKReachConstraints object and assign it to a node’s reachConstraints property. For more information on using reach actions to perform IK animations, see the SKAction class.

Symbols

Working with Reach Constraints

init(lowerAngleLimit: CGFloat, upperAngleLimit: CGFloat)

Initializes a new reach constraint object.

var lowerAngleLimit: CGFloat

The minimum angle that the node can have after it is rotated by a reach event.

var upperAngleLimit: CGFloat

The maximum angle that the node can have after it is rotated by a reach event.

Relationships

Inherits From