simSetShapeMass

Applies a new mass value to a shape. If simulation is running, the shape is dynamically reset (similar to calling sim.resetDynamicObject right after)

C++ synopsis

int simSetShapeMass(int shapeHandle, double mass)

Arguments

  • shapeHandle: handle of the shape object
  • mass: new mass of the shape

Return

  • -1 in case of an error


See also: