Instance Property

orientation

The rotation of the entity relative to its parent.

Declaration

var orientation: simd_quatf { get set }

Discussion

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

See Also

Rotating an Entity

func orientation(relativeTo: Entity?) -> simd_quatf

Gets the orientation of an entity relative to the given entity.

func setOrientation(simd_quatf, relativeTo: Entity?)

Sets the orientation of the entity relative to the given reference entity.