# sm.camera.setDirection

Sets the direction the camera is aiming.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.camera.setDirection( direction )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `direction` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The direction of the camera's aim. |
