---
title: SCNBillboardConstraint
framework: scenekit
role: symbol
role_heading: Class
path: scenekit/scnbillboardconstraint
---

# SCNBillboardConstraint

A constraint that orients a node to always point toward the current camera.

## Declaration

```swift
class SCNBillboardConstraint
```

## Overview

Overview An SCNBillboardConstraint object automatically adjusts a node’s orientation so that its local z-axis always points toward the pointOfView node currently being used to render the scene. For example, you can use a billboard constraint to efficiently render parts of a scene using two-dimensional sprite images instead of three-dimensional geometry—by mapping sprites onto planes affected by a billboard constraint, the sprites maintain their orientation with respect to the viewer. To attach constraints to an SCNNode object, use its constraints property.

## Topics

### Working with a Constraint’s Degrees of Freedom

- [freeAxes](scenekit/scnbillboardconstraint/freeaxes.md)

### Constants

- [SCNBillboardAxis](scenekit/scnbillboardaxis.md)

## Relationships

### Inherits From

- [SCNConstraint](scenekit/scnconstraint.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [SCNAnimatable](scenekit/scnanimatable.md)

## See Also

### Orientation Constraints

- [SCNLookAtConstraint](scenekit/scnlookatconstraint.md)
