Contents

orientation

The rotation of the entity relative to its parent.

Declaration

@MainActor @preconcurrency var orientation: simd_quatf { get set }

Mentioned in

Discussion

This value is the entity’s rotation relative to its parent. To get the world-space orientation of the entity, use orientation(relativeTo:), passing nil as the reference entity.

This is the same as the rotation value on the transform.

See Also

Rotating an entity