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
Entitywhich defines the frame of reference for the returned orientation. Can benil, which is equivalent to “world space”.