# CreateShape

> Create a Circle shape, using its default definition, attached to this body.

## Definition

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

## CreateShape(CircleGeometry)

Create a Circle shape, using its default definition, attached to this body.

```csharp
public PhysicsShape CreateShape(CircleGeometry geometry)
```

### Parameters

**** (\[CircleGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry)): The geometry to use.

### Returns

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

## CreateShape(CircleGeometry, PhysicsShapeDefinition)

Create a Circle shape attached to this body.

```csharp
public PhysicsShape CreateShape(CircleGeometry geometry, PhysicsShapeDefinition definition)
```

### Parameters

**** (\[CircleGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry)): The geometry to use.**** (\[PhysicsShapeDefinition]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsshapedefinition)): The shape definition to use.

### Returns

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

## CreateShape(PolygonGeometry)

Create a Polygon shape, using its default definition, attached to this body.

```csharp
public PhysicsShape CreateShape(PolygonGeometry geometry)
```

### Parameters

**** (\[PolygonGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry)): The geometry to use.

### Returns

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

## CreateShape(PolygonGeometry, PhysicsShapeDefinition)

Create a Polygon shape attached to this body.

```csharp
public PhysicsShape CreateShape(PolygonGeometry geometry, PhysicsShapeDefinition definition)
```

### Parameters

**** (\[PolygonGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry)): The geometry to use.**** (\[PhysicsShapeDefinition]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsshapedefinition)): The shape definition to use.

### Returns

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

## CreateShape(CapsuleGeometry)

Create a Capsule shape, using its default definition, attached to this body.

```csharp
public PhysicsShape CreateShape(CapsuleGeometry geometry)
```

### Parameters

**** (\[CapsuleGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/capsulegeometry)): The geometry to use.

### Returns

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

## CreateShape(CapsuleGeometry, PhysicsShapeDefinition)

Create a Capsule shape attached to this body.

```csharp
public PhysicsShape CreateShape(CapsuleGeometry geometry, PhysicsShapeDefinition definition)
```

### Parameters

**** (\[CapsuleGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/capsulegeometry)): The geometry to use.**** (\[PhysicsShapeDefinition]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsshapedefinition)): The shape definition to use.

### Returns

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

## CreateShape(SegmentGeometry)

Create a Segment shape, using its default definition, attached to this body.

```csharp
public PhysicsShape CreateShape(SegmentGeometry geometry)
```

### Parameters

**** (\[SegmentGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/segmentgeometry)): The geometry to use.

### Returns

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

## CreateShape(SegmentGeometry, PhysicsShapeDefinition)

Create a Segment shape attached to this body.

```csharp
public PhysicsShape CreateShape(SegmentGeometry geometry, PhysicsShapeDefinition definition)
```

### Parameters

**** (\[SegmentGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/segmentgeometry)): The geometry to use.**** (\[PhysicsShapeDefinition]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsshapedefinition)): The shape definition to use.

### Returns

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

## CreateShape(ChainSegmentGeometry)

Create a Chain Segment shape, using its default definition, attached to this body.

```csharp
public PhysicsShape CreateShape(ChainSegmentGeometry geometry)
```

### Parameters

**** (\[ChainSegmentGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/chainsegmentgeometry)): The geometry to use.

### Returns

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

## CreateShape(ChainSegmentGeometry, PhysicsShapeDefinition)

Create a Chain Segment shape attached to this body.

```csharp
public PhysicsShape CreateShape(ChainSegmentGeometry geometry, PhysicsShapeDefinition definition)
```

### Parameters

**** (\[ChainSegmentGeometry]\(/engine/6000.7/script-reference/unity/u2d/physics/chainsegmentgeometry)): The geometry to use.**** (\[PhysicsShapeDefinition]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsshapedefinition)): The shape definition to use.

### Returns

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