# PhysicsShape.ShapeProxy

> A proxy of a shape in a generic form suited to representing all support shape types. You can provide between 1 and PhysicsConstants.MaxPolygonVertices and a radius. A CircleGeometry is a single point with a non-zero radius (zero radius is allowed however and defines a point). A CapsuleGeometry is two points with a non-zero radius. A PolygonGeometry box is the points with and an optional radius. A SegmentGeometry is two points with a zero radius. A ChainSegmentGeometry is two points with a zero radius. To create a proxy, simply provide the geometry to the constructor.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public struct PhysicsShape.ShapeProxy
```

## Constructors

| Constructor                                                                                                                                                                                        | Description                                            |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [ShapeProxy(UnityEngine.LowLevelPhysics2D.CapsuleGeometry)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/ctor.md#shapeproxy\(capsulegeometry\))           | Create a shape proxy using the specified Capsule.      |
| [ShapeProxy(UnityEngine.LowLevelPhysics2D.ChainSegmentGeometry)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/ctor.md#shapeproxy\(chainsegmentgeometry\)) | Create a shape proxy using the specified ChainSegment. |
| [ShapeProxy(UnityEngine.LowLevelPhysics2D.CircleGeometry)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/ctor.md#shapeproxy\(circlegeometry\))             | Create a shape proxy using the specified Circle.       |
| [ShapeProxy(UnityEngine.LowLevelPhysics2D.PolygonGeometry)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/ctor.md#shapeproxy\(polygongeometry\))           | Create a shape proxy using the specified Polygon.      |
| [ShapeProxy(UnityEngine.LowLevelPhysics2D.SegmentGeometry)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/ctor.md#shapeproxy\(segmentgeometry\))           | Create a shape proxy using the specified Segment.      |
| [ShapeProxy(UnityEngine.Vector2)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/ctor.md#shapeproxy\(vector2\))                                             | Create a shape proxy representing a single point.      |

## Properties

| Property                                                                                                                    | Description                                                                                                                                                                                                                                                                    |
| --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [capsuleGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/capsulegeometry.md) | Get a [CapsuleGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/capsulegeometry.md) from the shape proxy. The [PhysicsShape.ShapeProxy.count](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/count.md) must be 2. |
| [circleGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/circlegeometry.md)   | Get a [CircleGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/circlegeometry.md) from the shape proxy. The [PhysicsShape.ShapeProxy.count](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/count.md) must be 1.   |
| [count](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/count.md)                     | The number of vertices.                                                                                                                                                                                                                                                        |
| [polygonGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/polygongeometry.md) | Get a [PolygonGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/polygongeometry.md) from the shape proxy.                                                                                                                                                |
| [radius](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/radius.md)                   | The radius around the vertices.                                                                                                                                                                                                                                                |
| [segmentGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/segmentgeometry.md) | Get a [SegmentGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/segmentgeometry.md) from the shape proxy. The [PhysicsShape.ShapeProxy.count](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/count.md) must be 2. |
| [vertices](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape/shapeproxy/vertices.md)               | The shape vertices.                                                                                                                                                                                                                                                            |
