Contents

position

The position of the entity relative to its parent.

Declaration

@MainActor @preconcurrency var position: SIMD3<Float> { get set }

Mentioned in

Discussion

This value is the entity’s position relative to its parent. To get the world-space position of the entity in the scene, use position(relativeTo:), passing nil as the reference entity.

This is the same as the translation value on the transform.

See Also

Positioning an entity