# Joint.getShapeB

Returns the [Shape](../Game-Script-Environment/Userdata/Shape.md) that is attached to a joint on another [Body](../Game-Script-Environment/Userdata/Body.md). This method returns nil if there is no shape attached to the joint.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
joint:getShapeB(  )
```

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

**Parameters:**

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

**Returns:**

| Type | Description |
| --- | --- |
| [Shape](../Game-Script-Environment/Userdata/Shape.md) | The joint's second shape. |
