# Body.getShape

Returns a shape that is part of a body by index.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Parameters:**

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

**Returns:**

| Type | Description |
| --- | --- |
| [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape at the specified index, or nil if the index is out of range. |
