Class

SCNBillboardConstraint

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

Declaration

class SCNBillboardConstraint : SCNConstraint

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

var freeAxes: SCNBillboardAxis

An option that specifies which degrees of freedom the constraint affects.

Constants

struct SCNBillboardAxis

Options for locking the orientation of nodes affected by a billboard constraint.

Relationships

Inherits From

Conforms To

See Also

Orientation Constraints

class SCNLookAtConstraint

A constraint that orients a node to always point toward a specified other node.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software