A constraint that orients a node to always point toward the current camera.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Scene
Kit
Declaration
class SCNBillboardConstraint : SCNConstraint
Overview
An SCNBillboard
object automatically adjusts a node’s orientation so that its local z-axis always points toward the point
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.