# sm.camera.cameraSphereCast

Performs a distance convex sweep with the shape of a sphere, from a position with a given direction.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.camera.cameraSphereCast( radius, start, direction )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `radius` | number | The radius of the cast sphere |
| `start` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The start position. |
| `direction` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The cast direction and range. |

**Returns:**

| Type | Description |
| --- | --- |
| number | The fraction of the distance reached until collision. |
