Regular API function

simGetMaterialId

Description Retrieves the material ID of a specific material. See also simGetShapeMaterial and simSetShapeMaterial.
C synopsis simInt simGetMaterialId(const simChar* materialName)
C parameters
materialName: the name of the material ID to be retrieved.
C return value
The material ID, or -1 if the material does not exist or in case of an error
Lua synopsis number materialId=simGetMaterialId(string materialName)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page