# sm.physics.getGroundMaterial

Returns the material at the given position in the terrain.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.physics.getGroundMaterial( worldPosition )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.physics.md#getgroundmaterial)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `worldPosition` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The world position to check the material at. |

**Returns:**

| Type | Description |
| --- | --- |
| string | The material name. |
