# sm.camera.setRotation

Sets the rotation of the camera.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.camera.setRotation( rotation )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.camera.md#setrotation)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `rotation` | [Quat](../Game-Script-Environment/Userdata/Quat.md) | The rotation of the camera. |
