# sm.physics.getSphereContacts

Returns a table of the game objects that are found inside the given sphere

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.physics.getSphereContacts( pos, radius, world?, mask? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `pos` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The world position of the sphere. |
| `radius` | number | The radius of the sphere. |
| `world` *(optional)* | [World](../Game-Script-Environment/Userdata/World.md) | The world to search in. Defaults to current world (Optional) |
| `mask` *(optional)* | integer | The collision mask. Defaults to [sm.physics.filter.static](../Game-Script-Environment/Static-Functions/sm.physics.md#filter) and [sm.physics.filter.dynamicBody](../Game-Script-Environment/Static-Functions/sm.physics.md#filter) and [sm.physics.filter.character](../Game-Script-Environment/Static-Functions/sm.physics.md#filter) (Optional) |

**Returns:**

| Type | Description |
| --- | --- |
| table | The table with tables of objects found inside the sphere. \{ bodies=\{[Body](../Game-Script-Environment/Userdata/Body.md), ..\}, characters=\{[Character](../Game-Script-Environment/Userdata/Character.md), ..\}, harvestables=\{[Harvestable](../Game-Script-Environment/Userdata/Harvestable.md), ..\}, lifts=\{[Lift](../Game-Script-Environment/Userdata/Lift.md), ..\} \} |
