Instance Property


A list of constraints affecting the node’s transformation.


var constraints: [SCNConstraint]? { get set }


An array of constraint objects. Before rendering, SceneKit evaluates all constraints attached to a node hierarchy and adjusts node transformations appropriately.

Use the SCNLookAtConstraint class to make a node always point toward another node even as both are moved, or the SCNTransformConstraint class to apply arbitrary transformations at constraint evaluation time.

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