Regular API function

simSetShapeMaterial / sim.setShapeMaterial

Description Sets the material (used by the physics engines) of a specific shape. You might have to also call sim.resetDynamicObject for changes to take effect.
C/C++
synopsis
simInt simSetShapeMaterial(simInt shapeHandle,simInt 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)