Skip to main content

shape_set_density

Function shape_set_density 

Source
pub fn shape_set_density(
    world: &mut World,
    shape_id: ShapeId,
    density: f32,
    update_body_mass: bool,
)
Expand description

Set the mass density of a shape, usually in kg/m^2. (b2Shape_SetDensity)