# Create(Vector2, Vector2, float)

> Create a Capsule.

## Definition

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

```csharp
public static CapsuleGeometry Create(Vector2 center1, Vector2 center2, float radius)
```

### Parameters

**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The first local center of the capsule end.**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The second local center of the capsule end.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The radius of the capsule.

### Returns

| Type                                                                                    | Description           |
| --------------------------------------------------------------------------------------- | --------------------- |
| [CapsuleGeometry](/engine/6000.7/script-reference/unity/u2d/physics/capsulegeometry.md) | The created geometry. |
