---
title: "module::addVelocity"
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/module/addvelocity
---

# module::addVelocity

Adds a velocity delta to the element’s current velocity.

## Declaration

```swift
void module::addVelocity(float3 velocity)
```

## Parameters

- `velocity`: The velocity vector to add to the current velocity

## Discussion

Discussion Use this function to incrementally adjust an element’s velocity by adding a velocity vector to its existing value. note:
