pub unsafe extern "C" fn PxShape_setDensityForFluid_mut(
    self_: *mut PxShape,
    densityForFluid: f32
)
Expand description

Sets the density used to interact with fluids.

To be physically accurate, the density of a rigid body should be computed as its mass divided by its volume. To simplify tuning the interaction of fluid and rigid bodies, the density for fluid can differ from the real density. This allows to create floating bodies, even if they are supposed to sink with their mass and volume.

Default: 800.0f