# PhysicsQuery.CastShapeInput

> Cast shape arguments used by CastShape queries. To use existing shape geometries, use the helper constructors that allow creation via a specific shape geometry type.

## Definition

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

```csharp
public struct PhysicsQuery.CastShapeInput
```

## Constructors

| Constructor                                                                                                                                                                                                        | Description                                                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [CastShapeInput()](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/ctor.md#castshapeinput\(\))                                                                                       | Create a default cast shape input.                                                                                                                                                                     |
| [CastShapeInput(Unity.U2D.Physics.CapsuleGeometry,UnityEngine.Vector2)](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/ctor.md#castshapeinput\(capsulegeometry-vector2\))           | Create a CastShapeInput the specified [CapsuleGeometry](/engine/6000.5/script-reference/unity/u2d/physics/capsulegeometry.md). You should transform the geometry into the space you require.           |
| [CastShapeInput(Unity.U2D.Physics.ChainSegmentGeometry,UnityEngine.Vector2)](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/ctor.md#castshapeinput\(chainsegmentgeometry-vector2\)) | Create a CastShapeInput the specified [ChainSegmentGeometry](/engine/6000.5/script-reference/unity/u2d/physics/chainsegmentgeometry.md). You should transform the geometry into the space you require. |
| [CastShapeInput(Unity.U2D.Physics.CircleGeometry,UnityEngine.Vector2)](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/ctor.md#castshapeinput\(circlegeometry-vector2\))             | Create a CastShapeInput the specified [CircleGeometry](/engine/6000.5/script-reference/unity/u2d/physics/circlegeometry.md). You should transform the geometry into the space you require.             |
| [CastShapeInput(Unity.U2D.Physics.PolygonGeometry,UnityEngine.Vector2)](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/ctor.md#castshapeinput\(polygongeometry-vector2\))           | Create a CastShapeInput the specified [PolygonGeometry](/engine/6000.5/script-reference/unity/u2d/physics/polygongeometry.md). You should transform the geometry into the space you require.           |
| [CastShapeInput(Unity.U2D.Physics.SegmentGeometry,UnityEngine.Vector2)](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/ctor.md#castshapeinput\(segmentgeometry-vector2\))           | Create a CastShapeInput the specified [SegmentGeometry](/engine/6000.5/script-reference/unity/u2d/physics/segmentgeometry.md). You should transform the geometry into the space you require.           |

## Properties

| Property                                                                                                    | Description                                                                                               |
| ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| [canEncroach](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/canencroach.md) | Allow cast shape to encroach when initially touching. This only works if the radius is greater than zero. |
| [maxFraction](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/maxfraction.md) | The maximum fraction of the translation to consider in the range (0 to 1), typically 1.                   |
| [shapeProxy](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/shapeproxy.md)   | A proxy to the shape.                                                                                     |
| [translation](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/translation.md) | Translation of the cast shape.                                                                            |

## Static Methods

| Method                                                                                                  | Description                                                                                                        |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [FromShape](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castshapeinput/fromshape.md) | Create a CastShapeInput the specified world shape. The geometry will automatically be translated into world-space. |
