# Shape.createJoint

Create a new joint

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
shape:createJoint( uuid, position, direction )
```

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

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `shape` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The host shape. |
| `uuid` | [Uuid](../Game-Script-Environment/Userdata/Uuid.md) | The uuid of the joint. |
| `position` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The joint's grid position. |
| `direction` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The joint's normal direction. |

**Returns:**

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