Regular API function

simSetShapeMaterial / sim.setShapeMaterial

Description Deprecated
C/C++
synopsis
int simSetShapeMaterial(int shapeHandle,int materialIdOrShapeHandle)
C/C++
parameters
shapeHandle: the handle of the shape. See also sim.getObject.
materialIdOrShapeHandle: a predefined dynamic material ID, or the handle of another shape you wish to copy the material properties from.
C/C++
return value
-1 in case of an error.
Lua
synopsis
sim.setShapeMaterial(int shapeHandle,int materialIdOrShapeHandle)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Python
synopsis
sim.setShapeMaterial(int shapeHandle,int materialIdOrShapeHandle)