Regular API function

simSetShapeMass / sim.setShapeMass

Description Applies a new mass value to a shape. If simulation is running, the shape will be dynamically reset (similar to calling sim.resetDynamicObject right after). See also sim.getShapeMass, sim.setShapeInertia and sim.computeMassAndInertia.
C/C++
synopsis
simInt simSetShapeMass(simInt shapeHandle,simFloat mass)
C/C++
parameters
shapeHandle: handle of the shape object
mass: the new mass of the shape
C/C++
return value
-1 in case of an error
Lua
synopsis
sim.setShapeMass(int shapeHandle,float mass)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Python
synopsis
sim.setShapeMass(int shapeHandle,float mass)