Contents

position(relativeTo:)

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

Declaration

@MainActor @preconcurrency func position(relativeTo referenceEntity: Entity?) -> SIMD3<Float>

Parameters

  • referenceEntity:

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

Return Value

The position of the entity relative to referenceEntity.

See Also

Positioning an entity