# OverridePhysicsShape(IList<Vector2[]>)

> Sets up a new Sprite physics shape.

## Definition

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

```csharp
public void OverridePhysicsShape(IList<Vector2[]> physicsShapes)
```

### Parameters

**** (\[IList\<Vector2\[]>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)): A multidimensional list of points in [Sprite.rect](/engine/6000.3/script-reference/unityengine/sprite/rect.md) space denoting the physics shape outlines.

### Remarks

The positions are in [Sprite.rect](/engine/6000.3/script-reference/unityengine/sprite/rect.md) space and this space is from [Rect.zero](/engine/6000.3/script-reference/unityengine/rect/zero.md) to [Rect.size](/engine/6000.3/script-reference/unityengine/rect/size.md). Pivot offset and transformation to unit space are done automatically. Values outside of the Rect bounds are valid and are transformed based on [Sprite.rect](/engine/6000.3/script-reference/unityengine/sprite/rect.md) space.

Each internal array of physics shape outlines must have more than 2 positions to be able to describe a shape.

Additional Resources: [Sprite.rect](/engine/6000.3/script-reference/unityengine/sprite/rect.md).
