Regular API function

simGetShapeMass / sim.getShapeMass

Description Retrieves the mass of a shape. See also sim.setShapeMass, sim.getShapeInertia and sim.computeMassAndInertia.
C/C++
synopsis
simInt simGetShapeMass(simInt shapeHandle,simFloat* mass)
C/C++
parameters
shapeHandle: handle of the shape object
mass: the mass of the shape
C/C++
return value
-1 in case of an error
Lua synopsis float mass=sim.getShapeMass(int shapeHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart
Python synopsis float mass=sim.getShapeMass(int shapeHandle)