A list of constraints affecting the node’s transformation.
SDKs
- iOS 8.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Scene
Kit
Declaration
@property(copy) NSArray<SCNConstraint *> *constraints;
Discussion
An array of constraint objects. Before rendering, SceneKit evaluates all constraints attached to a node hierarchy and adjusts node transformations appropriately.
Use the SCNLook
class to make a node always point toward another node even as both are moved, or the SCNTransform
class to apply arbitrary transformations at constraint evaluation time.