# Body.getShapes

Returns a table of all [shapes](../Game-Script-Environment/Userdata/Shape.md) that are part of a body.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
body:getShapes(  )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Body.md#getshapes)

This will <strong>not</strong> return shapes in neighbouring bodies connected by [joints](../Game-Script-Environment/Userdata/Joint.md), etc.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `body` | [Body](../Game-Script-Environment/Userdata/Body.md) | The body. |

**Returns:**

| Type | Description |
| --- | --- |
| table | The table of shapes in a body. \{[Shape](../Game-Script-Environment/Userdata/Shape.md), ...\} |
