# CreateJoint

> Create a PhysicsDistanceJoint in the world. See PhysicsDistanceJoint.Create.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

## CreateJoint(PhysicsDistanceJointDefinition)

Create a PhysicsDistanceJoint in the world. See [PhysicsDistanceJoint.Create](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsdistancejoint/create.md).

```csharp
public PhysicsDistanceJoint CreateJoint(PhysicsDistanceJointDefinition definition)
```

### Parameters

**** (\[PhysicsDistanceJointDefinition]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsdistancejointdefinition)): The joint definition to use.

### Returns

| Type                                                                                                          | Description        |
| ------------------------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsDistanceJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsdistancejoint.md) | The created joint. |

## CreateJoint(PhysicsRelativeJointDefinition)

Create a PhysicsRelativeJoint in the world. See [PhysicsRelativeJoint.Create](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejoint/create.md).

```csharp
public PhysicsRelativeJoint CreateJoint(PhysicsRelativeJointDefinition definition)
```

### Parameters

**** (\[PhysicsRelativeJointDefinition]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition)): The joint definition to use.

### Returns

| Type                                                                                                          | Description        |
| ------------------------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsRelativeJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejoint.md) | The created joint. |

## CreateJoint(PhysicsIgnoreJointDefinition)

Create an PhysicsIgnoreJoint in the world. See [PhysicsIgnoreJoint.Create](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsignorejoint/create.md).

```csharp
public PhysicsIgnoreJoint CreateJoint(PhysicsIgnoreJointDefinition definition)
```

### Parameters

**** (\[PhysicsIgnoreJointDefinition]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsignorejointdefinition)): The joint definition to use.

### Returns

| Type                                                                                                      | Description        |
| --------------------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsIgnoreJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsignorejoint.md) | The created joint. |

## CreateJoint(PhysicsSliderJointDefinition)

Create a PhysicsSliderJoint in the world. See [PhysicsSliderJoint.Create](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicssliderjoint/create.md).

```csharp
public PhysicsSliderJoint CreateJoint(PhysicsSliderJointDefinition definition)
```

### Parameters

**** (\[PhysicsSliderJointDefinition]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicssliderjointdefinition)): The joint definition to use.

### Returns

| Type                                                                                                      | Description        |
| --------------------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsSliderJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicssliderjoint.md) | The created joint. |

## CreateJoint(PhysicsHingeJointDefinition)

Create a PhysicsHingeJoint in the world. See [PhysicsHingeJoint.Create](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejoint/create.md).

```csharp
public PhysicsHingeJoint CreateJoint(PhysicsHingeJointDefinition definition)
```

### Parameters

**** (\[PhysicsHingeJointDefinition]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition)): The joint definition to use.

### Returns

| Type                                                                                                    | Description        |
| ------------------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsHingeJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejoint.md) | The created joint. |

## CreateJoint(PhysicsFixedJointDefinition)

Create a PhysicsFixedJoint in the world. See [PhysicsFixedJoint.Create](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsfixedjoint/create.md).

```csharp
public PhysicsFixedJoint CreateJoint(PhysicsFixedJointDefinition definition)
```

### Parameters

**** (\[PhysicsFixedJointDefinition]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsfixedjointdefinition)): The joint definition to use.

### Returns

| Type                                                                                                    | Description        |
| ------------------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsFixedJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsfixedjoint.md) | The created joint. |

## CreateJoint(PhysicsWheelJointDefinition)

Create a PhysicsWheelJoint in the world. See [PhysicsWheelJoint.Create](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicswheeljoint/create.md).

```csharp
public PhysicsWheelJoint CreateJoint(PhysicsWheelJointDefinition definition)
```

### Parameters

**** (\[PhysicsWheelJointDefinition]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicswheeljointdefinition)): The joint definition to use.

### Returns

| Type                                                                                                    | Description        |
| ------------------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsWheelJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicswheeljoint.md) | The created joint. |
