Contents

orientation(relativeTo:)

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

Declaration

@MainActor @preconcurrency func orientation(relativeTo referenceEntity: Entity?) -> simd_quatf

Parameters

  • referenceEntity:

    The entity that defines a frame of reference. Set this to nil to indicate world space.

Return Value

The orientation of the entity relative to referenceEntity.

See Also

Rotating an entity