orientation(relativeTo:)
Gets the orientation of an entity relative to the given entity.
Declaration
@MainActor @preconcurrency func orientation(relativeTo referenceEntity: Entity?) -> simd_quatfParameters
- referenceEntity:
The entity that defines a frame of reference. Set this to
nilto indicate world space.
Return Value
The orientation of the entity relative to referenceEntity.