---
title: constraints
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnnode/constraints
---

# constraints

A list of constraints affecting the node’s transformation.

## Declaration

```swift
var constraints: [SCNConstraint]? { get set }
```

## Discussion

Discussion 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.
