---
title: "element::velocity"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/element/velocity
---

# element::velocity

Returns the current velocity of the element.

## Declaration

```swift
float3 element::velocity()
```

## Return Value

Return Value The velocity as a 3D vector

## Discussion

Discussion Use this function to read the element’s velocity vector, which indicates its direction and speed of motion. note:
