A constraint that runs a specified closure to compute a new transform (position, rotation, and scale) for each node that the constraint affects.


class SCNTransformConstraint : SCNConstraint


To attach constraints to an SCNNode object, use its constraints property.

When Scene Kit prepares to render a scene, it evaluates the list of constraints attached to each node to determine the transformation for that node, then applies the new transformation before rendering. To evaluate a transform constraint, Scene Kit runs the block you provided when creating the constraint. In this block, your app computes a new transformation to be applied to the node. Optionally, your app may reference the node’s current transformation in computing the new transformation.


Inherits From

Conforms To