# Joint.shapeB

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:** Member

**Environments:** Game

## Game

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

### Get

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.

**Returns:**

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