# 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(PhysicsWorld, PhysicsDistanceJointDefinition)

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

```csharp
public static PhysicsDistanceJoint CreateJoint(PhysicsWorld world, PhysicsDistanceJointDefinition definition)
```

### Parameters

**** (\[PhysicsWorld]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld)): The world to create the joint in.**** (\[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(PhysicsWorld, PhysicsRelativeJointDefinition)

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

```csharp
public static PhysicsRelativeJoint CreateJoint(PhysicsWorld world, PhysicsRelativeJointDefinition definition)
```

### Parameters

**** (\[PhysicsWorld]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld)): The world to create the joint in.**** (\[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(PhysicsWorld, PhysicsIgnoreJointDefinition)

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

```csharp
public static PhysicsIgnoreJoint CreateJoint(PhysicsWorld world, PhysicsIgnoreJointDefinition definition)
```

### Parameters

**** (\[PhysicsWorld]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld)): The world to create the joint in.**** (\[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(PhysicsWorld, PhysicsSliderJointDefinition)

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

```csharp
public static PhysicsSliderJoint CreateJoint(PhysicsWorld world, PhysicsSliderJointDefinition definition)
```

### Parameters

**** (\[PhysicsWorld]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld)): The world to create the joint in.**** (\[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(PhysicsWorld, PhysicsHingeJointDefinition)

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

```csharp
public static PhysicsHingeJoint CreateJoint(PhysicsWorld world, PhysicsHingeJointDefinition definition)
```

### Parameters

**** (\[PhysicsWorld]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld)): The world to create the joint in.**** (\[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(PhysicsWorld, PhysicsFixedJointDefinition)

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

```csharp
public static PhysicsFixedJoint CreateJoint(PhysicsWorld world, PhysicsFixedJointDefinition definition)
```

### Parameters

**** (\[PhysicsWorld]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld)): The world to create the joint in.**** (\[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(PhysicsWorld, PhysicsWheelJointDefinition)

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

```csharp
public static PhysicsWheelJoint CreateJoint(PhysicsWorld world, PhysicsWheelJointDefinition definition)
```

### Parameters

**** (\[PhysicsWorld]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld)): The world to create the joint in.**** (\[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. |
