Class

SKReachConstraints

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

Declaration

class 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

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

See Also

Constraints

class SKConstraint

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software