# Shape.setPhysicsMaterial

Sets the physics material of the shape.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
shape:setPhysicsMaterial( material )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Shape.md#setphysicsmaterial)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `shape` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape. |
| `material` | integer | The new physics material for the shape. |
