# Body.getJoints

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

**Kind:** Function

**Environments:** Game

## Game

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

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

This will <strong>not</strong> return joints in neighbouring bodies.

**Parameters:**

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

**Returns:**

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