# FromShape(PhysicsShape, Vector2)

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

## Definition

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

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

### Parameters

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

### Returns

| Type                                                                                                           | Description |
| -------------------------------------------------------------------------------------------------------------- | ----------- |
| [CastShapeInput](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castshapeinput.md) |             |
