Contents

simdLocalUp

The direction SceneKit treats as “up” in local space for all nodes.

Declaration

class var simdLocalUp: simd_float3 { get }

Discussion

The “up” direction of a node affects cameras attached to a node, as well as relative orientation and movement effects such as simdLook(at:), SCNLookAtConstraint, and SCNBillboardConstraint.

This vector is always (0, 1, 0) for all nodes, but you can use this class property when it’s convenient to refer to directions symbolically.

See Also

Related Documentation

Calculating Node-Relative Transforms