Class

SKReachConstraints

A specification of the degree of freedom when solving inverse kinematics.

Declaration

@interface SKReachConstraints : NSObject

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.

Topics

Working with Reach Constraints

- initWithLowerAngleLimit:upperAngleLimit:

Initializes a new reach constraint object.

lowerAngleLimit

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

upperAngleLimit

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

Relationships

Inherits From

Conforms To

See Also

Constraints

SKConstraint

A specification for constraining a node's position or rotation.