# Create

> Create a Chain of multiple shapes attached to the specified body which itself is within a world.

## Definition

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

## Create(PhysicsBody, ChainGeometry, PhysicsChainDefinition)

Create a Chain of multiple shapes attached to the specified body which itself is within a world.

```csharp
public static PhysicsChain Create(PhysicsBody body, ChainGeometry geometry, PhysicsChainDefinition definition)
```

### Parameters

**** (\[PhysicsBody]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsbody)): The body to attach the shape(s) to.**** (\[ChainGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/chaingeometry)): The shape geometry to use.**** (\[PhysicsChainDefinition]\(/engine/6000.7/script-reference/unity/u2d/physics/physicschaindefinition)): The shape definition to use.

### Returns

| Type                                                                              | Description        |
| --------------------------------------------------------------------------------- | ------------------ |
| [PhysicsChain](/engine/6000.7/script-reference/unity/u2d/physics/physicschain.md) | The created shape. |

## Create(PhysicsBody, ReadOnlySpan\<Vector2>, PhysicsChainDefinition)

Create a Chain of multiple shapes attached to the specified body which itself is within a world.

```csharp
public static PhysicsChain Create(PhysicsBody body, ReadOnlySpan<Vector2> vertices, PhysicsChainDefinition definition)
```

### Parameters

**** (\[PhysicsBody]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsbody)): The body to attach the shape(s) to.**** (\[ReadOnlySpan\<Vector2>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): The vertices that will create the ChainSegment shapes.**** (\[PhysicsChainDefinition]\(/engine/6000.7/script-reference/unity/u2d/physics/physicschaindefinition)): The shape definition to use.

### Returns

| Type                                                                              | Description        |
| --------------------------------------------------------------------------------- | ------------------ |
| [PhysicsChain](/engine/6000.7/script-reference/unity/u2d/physics/physicschain.md) | The created chain. |
