# FromShape(PhysicsShape, Vector2)

> Create a CastShapeInput the specified world shape. The geometry will automatically be translated into world-space.

## Definition

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

```csharp
public static PhysicsQuery.CastShapeInput FromShape(PhysicsShape shape, Vector2 translation)
```

### Parameters

**** (\[PhysicsShape]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsshape)): The shape to use.**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The cast translation to use.

### Returns

| Type                                                                                               | Description |
| -------------------------------------------------------------------------------------------------- | ----------- |
| [CastShapeInput](/engine/6000.6/script-reference/unity/u2d/physics/physicsquery/castshapeinput.md) |             |
