Contents

freeAxes

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

Declaration

var freeAxes: SCNBillboardAxis { get set }

Discussion

With the default constraint type of all, a node affected by the constraint never rotates with respect to the scene’s point of view. Change this property to partially constrain a node’s orientation. For example, the Y constraint type keeps only the node’s y-axis parallel to the screen—this option can be useful for applications like drawing trees in the distance with 2D sprites instead of with 3D geometry.