sm.physics.getMaterialId

Returns the material id from name

Kind: Function

Environments: Game

Game

sm.physics.getMaterialId( materialName )

Open the full Game reference

Parameters:

Name Type Description
materialName string Material name.

Returns:

Type Description
integer The id of the material.