Regular API function


Description Retrieves the material ID of a specific shape. See also simGetMaterialId and simSetShapeMaterial.
C synopsis simInt simGetShapeMaterial(simInt shapeHandle)
C parameters
shapeHandle: the handle of the shape. See also simGetObjectHandle.
C return value
The material ID, or -1 n case of an error
Lua synopsis number materialId=simGetShapeMaterial(number shapeHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page