b2Body_ApplyMassFromShapes

Function b2Body_ApplyMassFromShapes 

Source
pub unsafe extern "C" fn b2Body_ApplyMassFromShapes(bodyId: b2BodyId)
Expand description

This updates the mass properties to the sum of the mass properties of the shapes. This normally does not need to be called unless you called SetMassData to override the mass and you later want to reset the mass. You may also use this when automatic mass computation has been disabled. You should call this regardless of body type. Note that sensor shapes may have mass.