The abstract superclass for objects that automatically adjust the position, rotation, or scale of a node based on specified rules.


To control the transform (position, rotation, and scale) of one or more SCNNode objects with constraints, create and configure instances of the SCNConstraint subclass that provides the behavior you want, then add those constraint objects to each node's constraints array.

When SceneKit prepares to render a scene, it examines the list of constraints attached to each node to determine the transform for that node, then applies the new transformation before displaying the scene.


Tuning a Constraint’s Effect on Nodes

var influenceFactor: CGFloat

The influence of the constraint on the node’s transformation.

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