# 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:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

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

## Constructors

| Constructor                                                                                                                                                                                                                                | Description                                                                                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CastShapeInput()](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castshapeinput/ctor.md#castshapeinput\(\))                                                                                                   | Create a default cast shape input.                                                                                                                                                                                           |
| [CastShapeInput(UnityEngine.LowLevelPhysics2D.CapsuleGeometry,UnityEngine.Vector2)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castshapeinput/ctor.md#castshapeinput\(capsulegeometry-vector2\))           | Create a CastShapeInput the specified [CapsuleGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/capsulegeometry.md). You may want to also translate the geometry into the space you require.           |
| [CastShapeInput(UnityEngine.LowLevelPhysics2D.ChainSegmentGeometry,UnityEngine.Vector2)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castshapeinput/ctor.md#castshapeinput\(chainsegmentgeometry-vector2\)) | Create a CastShapeInput the specified [ChainSegmentGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/chainsegmentgeometry.md). You may want to also translate the geometry into the space you require. |
| [CastShapeInput(UnityEngine.LowLevelPhysics2D.CircleGeometry,UnityEngine.Vector2)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castshapeinput/ctor.md#castshapeinput\(circlegeometry-vector2\))             | Create a CastShapeInput the specified [CircleGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/circlegeometry.md). You may want to also translate the geometry into the space you require.             |
| [CastShapeInput(UnityEngine.LowLevelPhysics2D.PolygonGeometry,UnityEngine.Vector2)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castshapeinput/ctor.md#castshapeinput\(polygongeometry-vector2\))           | Create a CastShapeInput the specified [PolygonGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/polygongeometry.md). You may want to also translate the geometry into the space you require.           |
| [CastShapeInput(UnityEngine.LowLevelPhysics2D.SegmentGeometry,UnityEngine.Vector2)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castshapeinput/ctor.md#castshapeinput\(segmentgeometry-vector2\))           | Create a CastShapeInput the specified [SegmentGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/segmentgeometry.md). You may want to also translate the geometry into the space you require.           |

## Properties

| Property                                                                                                                | Description                                                                                               |
| ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| [canEncroach](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/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.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castshapeinput/maxfraction.md) | The maximum fraction of the translation to consider in the range (0 to 1), typically 1.                   |
| [shapeProxy](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castshapeinput/shapeproxy.md)   | A proxy to the shape.                                                                                     |
| [translation](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castshapeinput/translation.md) | Translation of the cast shape.                                                                            |

## Static Methods

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