sm.physics.getMaterialId
Returns the material id from name
Kind: Function
Environments: Game
Game
sm.physics.getMaterialId( materialName )
Parameters:
| Name | Type | Description |
|---|---|---|
materialName |
string | Material name. |
Returns:
| Type | Description |
|---|---|
| integer | The id of the material. |