# sm.physics.getBoxContacts

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

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.physics.getBoxContacts( pos, rotation, halfExtents, world, mask? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `pos` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The world position of the box center. |
| `rotation` | [Quat](../Game-Script-Environment/Userdata/Quat.md) | The rotation of the box. |
| `halfExtents` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The half extents of the box. |
| `world` | [World](../Game-Script-Environment/Userdata/World.md) | The world to search in. (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 box. \{ 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), ..\} \} |
