b2Body_SetMassData

Function b2Body_SetMassData 

Source
pub unsafe extern "C" fn b2Body_SetMassData(
    bodyId: b2BodyId,
    massData: b2MassData,
)
Expand description

Override the body’s mass properties. Normally this is computed automatically using the shape geometry and density. This information is lost if a shape is added or removed or if the body type changes.