sm.physics.getGroundMaterial
Returns the material at the given position in the terrain.
Kind: Function
Environments: Game
Game
sm.physics.getGroundMaterial( worldPosition )
Parameters:
| Name | Type | Description |
|---|---|---|
worldPosition |
Vec3 | The world position to check the material at. |
Returns:
| Type | Description |
|---|---|
| string | The material name. |