Contents

orientation(relativeTo:)

Calculates and returns the current orientation of the pin relative to a reference entity, adjusted by the optional offset position.

Declaration

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

Parameters

  • referenceEntity:

    Reference Entity which defines the frame of reference for the returned orientation. Can be nil, which is equivalent to “world space”.