<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/EntityTranslationGestureRecognizer/velocity(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:10RealityKit34EntityTranslationGestureRecognizerC8velocity2ins5SIMD3VySfG0A10Foundation0C0CSg_tF"
  },
  "title" : "velocity(in:)"
}
-->

# velocity(in:)

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

```
@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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)