Instance Property

position

The position of the entity relative to its parent.

Declaration

var position: SIMD3<Float> { get set }

Discussion

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

See Also

Positioning an Entity

func position(relativeTo: Entity?) -> SIMD3<Float>

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

func setPosition(SIMD3<Float>, relativeTo: Entity?)

Sets the position of the entity relative to the given reference entity.