pub unsafe extern "C" fn b2Shape_SetDensity(
shapeId: b2ShapeId,
density: f32,
updateBodyMass: bool,
)Expand description
Set the mass density of a shape, usually in kg/m^2. This will optionally update the mass properties on the parent body. @see b2ShapeDef::density, b2Body_ApplyMassFromShapes