# CreateShapeProxy

> Create a shape proxy from the geometry.

## Definition

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

## CreateShapeProxy()

Create a shape proxy from the geometry.

```csharp
public readonly PhysicsShape.ShapeProxy CreateShapeProxy()
```

### Returns

| Type                                                                                       | Description |
| ------------------------------------------------------------------------------------------ | ----------- |
| [ShapeProxy](/engine/6000.5/script-reference/unity/u2d/physics/physicsshape/shapeproxy.md) |             |

## CreateShapeProxy(PhysicsTransform)

Create a shape proxy from the geometry, transformed by the specified transform.

```csharp
public readonly PhysicsShape.ShapeProxy CreateShapeProxy(PhysicsTransform transform)
```

### Parameters

**** (\[PhysicsTransform]\(/engine/6000.5/script-reference/unity/u2d/physics/physicstransform)): The transform used to position the geometry.

### Returns

| Type                                                                                       | Description |
| ------------------------------------------------------------------------------------------ | ----------- |
| [ShapeProxy](/engine/6000.5/script-reference/unity/u2d/physics/physicsshape/shapeproxy.md) |             |

## CreateShapeProxy(Matrix4x4)

Create a shape proxy from the geometry, transformed by the specified transform.

```csharp
public readonly PhysicsShape.ShapeProxy CreateShapeProxy(Matrix4x4 transform)
```

### Parameters

**** (\[Matrix4x4]\(/engine/6000.5/script-reference/unityengine/matrix4x4)): The transform used to position the geometry.

### Returns

| Type                                                                                       | Description |
| ------------------------------------------------------------------------------------------ | ----------- |
| [ShapeProxy](/engine/6000.5/script-reference/unity/u2d/physics/physicsshape/shapeproxy.md) |             |
