# sm.physics.getShapeContactsInSphere

Returns a table of all shapes colliding with a given sphere.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.physics.getShapeContactsInSphere( center, radius, world )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `center` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The center position of the sphere. |
| `radius` | number | The radius of the sphere. |
| `world` | [World](../Game-Script-Environment/Userdata/World.md) | The world to search in. (optional) |

**Returns:**

| Type | Description |
| --- | --- |
| table | The table of found shapes. \{\{shape=[Shape](../Game-Script-Environment/Userdata/Shape.md), contactWorldPosition=[Vec3](../Game-Script-Environment/Userdata/Vec3.md) \}, ..\} |
