---
title: "init(target:)"
framework: scenekit
role: symbol
role_heading: Initializer
path: "scenekit/scnlookatconstraint/init(target:)"
---

# init(target:)

Creates a look-at constraint for a specified target node.

## Declaration

```swift
convenience init(target: SCNNode?)
```

## Parameters

- `target`: The node that constrained nodes will be reoriented to point toward.

## Return Value

Return Value A constraint object.

## Discussion

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