---
title: "setRotationRate(_:)"
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: "gamecontroller/gcmotion/setrotationrate(_:)"
---

# setRotationRate(_:)

Sets the controller’s rotation rate.

## Declaration

```swift
func setRotationRate(_ rotationRate: GCRotationRate)
```

## Parameters

- `rotationRate`: A gyroscopic measurement of the controller’s rotation around the x, y, and z axes.

## See Also

### Setting Snapshot Values

- [setStateFrom(_:)](gamecontroller/gcmotion/setstatefrom(_:).md)
- [setAttitude(_:)](gamecontroller/gcmotion/setattitude(_:).md)
- [setAcceleration(_:)](gamecontroller/gcmotion/setacceleration(_:).md)
- [setGravity(_:)](gamecontroller/gcmotion/setgravity(_:).md)
- [setUserAcceleration(_:)](gamecontroller/gcmotion/setuseracceleration(_:).md)
