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

# rotation

The orientation of the agent in 3D space.

## Declaration

```swift
var rotation: matrix_float3x3 { get set }
```

## Discussion

Discussion The agent updates its own position, rotation, and velocity according to its goals when you call its update(deltaTime:) method. However, you can still directly change the rotation of an agent. Do this when you want to move a static agent (that is, one with no goals) or override an agent’s behavior as a direct result of user input.

## See Also

### Managing an Agent’s Position and Orientation

- [position](gameplaykit/gkagent3d/position.md)
