---
title: velocity
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkagent3d/velocity
---

# velocity

The current velocity of the agent in 3D space.

## Declaration

```swift
var velocity: vector_float3 { get }
```

## Discussion

Discussion An agent’s velocity is a calculated property—the velocity vector is determined by an agent’s facing direction (its rotation property) and its speed property.

## See Also

### Running the Agent Simulation

- [update(deltaTime:)](gameplaykit/gkagent3d/update(deltatime:).md)
