# CreateJoint

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

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

## CreateJoint(PhysicsDistanceJointDefinition)

Create a PhysicsDistanceJoint in the world. See [PhysicsDistanceJoint.Create](/engine/6000.6/script-reference/unity/u2d/physics/physicsdistancejoint/create.md).

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

### Parameters

**** (\[PhysicsDistanceJointDefinition]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsdistancejointdefinition)): The joint definition to use.

### Returns

| Type                                                                                              | Description        |
| ------------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsDistanceJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsdistancejoint.md) | The created joint. |

## CreateJoint(PhysicsRelativeJointDefinition)

Create a PhysicsRelativeJoint in the world. See [PhysicsRelativeJoint.Create](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejoint/create.md).

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

### Parameters

**** (\[PhysicsRelativeJointDefinition]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition)): The joint definition to use.

### Returns

| Type                                                                                              | Description        |
| ------------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsRelativeJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejoint.md) | The created joint. |

## CreateJoint(PhysicsIgnoreJointDefinition)

Create an PhysicsIgnoreJoint in the world. See [PhysicsIgnoreJoint.Create](/engine/6000.6/script-reference/unity/u2d/physics/physicsignorejoint/create.md).

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

### Parameters

**** (\[PhysicsIgnoreJointDefinition]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsignorejointdefinition)): The joint definition to use.

### Returns

| Type                                                                                          | Description        |
| --------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsIgnoreJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsignorejoint.md) | The created joint. |

## CreateJoint(PhysicsSliderJointDefinition)

Create a PhysicsSliderJoint in the world. See [PhysicsSliderJoint.Create](/engine/6000.6/script-reference/unity/u2d/physics/physicssliderjoint/create.md).

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

### Parameters

**** (\[PhysicsSliderJointDefinition]\(/engine/6000.6/script-reference/unity/u2d/physics/physicssliderjointdefinition)): The joint definition to use.

### Returns

| Type                                                                                          | Description        |
| --------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsSliderJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicssliderjoint.md) | The created joint. |

## CreateJoint(PhysicsHingeJointDefinition)

Create a PhysicsHingeJoint in the world. See [PhysicsHingeJoint.Create](/engine/6000.6/script-reference/unity/u2d/physics/physicshingejoint/create.md).

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

### Parameters

**** (\[PhysicsHingeJointDefinition]\(/engine/6000.6/script-reference/unity/u2d/physics/physicshingejointdefinition)): The joint definition to use.

### Returns

| Type                                                                                        | Description        |
| ------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsHingeJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicshingejoint.md) | The created joint. |

## CreateJoint(PhysicsFixedJointDefinition)

Create a PhysicsFixedJoint in the world. See [PhysicsFixedJoint.Create](/engine/6000.6/script-reference/unity/u2d/physics/physicsfixedjoint/create.md).

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

### Parameters

**** (\[PhysicsFixedJointDefinition]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsfixedjointdefinition)): The joint definition to use.

### Returns

| Type                                                                                        | Description        |
| ------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsFixedJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsfixedjoint.md) | The created joint. |

## CreateJoint(PhysicsWheelJointDefinition)

Create a PhysicsWheelJoint in the world. See [PhysicsWheelJoint.Create](/engine/6000.6/script-reference/unity/u2d/physics/physicswheeljoint/create.md).

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

### Parameters

**** (\[PhysicsWheelJointDefinition]\(/engine/6000.6/script-reference/unity/u2d/physics/physicswheeljointdefinition)): The joint definition to use.

### Returns

| Type                                                                                        | Description        |
| ------------------------------------------------------------------------------------------- | ------------------ |
| [PhysicsWheelJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicswheeljoint.md) | The created joint. |
