position(relativeTo:)
Calculates and returns the current position of the pin relative to a reference entity, adjusted by the optional offset position.
Declaration
@MainActor func position(relativeTo referenceEntity: Entity?) -> SIMD3<Float>?Parameters
- referenceEntity:
Reference
Entitywhich defines the frame of reference for the returned position. Can benil, which is equivalent to “world space”.