Contents

setTranslation(_:in:)

Sets the translation of the receiver in the entity’s coordinate space

Declaration

@MainActor @preconcurrency func setTranslation(_ translation: SIMD3<Float>, in entity: Entity?)

Parameters

  • translation:

    A point that identifies the new translation value.

  • entity:

    An entity in whose space the translation is to occur. A nil entity will result in world space.

See Also

Using the recognizer