# CreateShapeProxy

> Create a shape proxy from the shape.

## Definition

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

## CreateShapeProxy(bool)

Create a shape proxy from the shape.

```csharp
public PhysicsShape.ShapeProxy CreateShapeProxy(bool useWorldSpace = false)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to create the shape proxy in world-space or not. World-space will transform by the body origin the shape is attached to.

### Returns

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

## CreateShapeProxy(PhysicsTransform)

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

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

### Parameters

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

### Returns

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

## CreateShapeProxy(Matrix4x4, bool)

Create a shape proxy from the shape, transformed by the specified transform. The maximum absolute value component from the scale will be used to scale the radius when `scaleRadius` is true. Shape types without a radius ignore the flag.

```csharp
public PhysicsShape.ShapeProxy CreateShapeProxy(Matrix4x4 transform, bool scaleRadius)
```

### Parameters

**** (\[Matrix4x4]\(/engine/6000.5/script-reference/unityengine/matrix4x4)): The transform used to position the shape geometry.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to scale the radius of the shape. Only affects shape types that carry a radius (Circle, Capsule, Polygon).

### Returns

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