Contents

velocity(in:)

The velocity of the translation gesture in the space of the specified entity.

Declaration

@MainActor @preconcurrency func velocity(in entity: Entity?) -> SIMD3<Float>

Parameters

  • entity:

    The entity in whose space the velocity of the translation gesture is computed. A nil entity will result in world space.

Return Value

The velocity of the translation gesture, in the space of the specified entity, in meters per second.

See Also

Using the recognizer