A constraint that runs a specified closure to compute a new transform (position, rotation, and scale) for each node that the constraint affects.
- iOS 8.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+
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.