C4 Engine
C4 Engine API Documentation

ShapeObject::SetShapeDensity

Defined in:  C4Shapes.h
Sets the density of a shape.
Prototype

void SetShapeDensity(float density);

Parameters
density The new density.
Description
The SetShapeDensity function sets the density of a shape to the value specified by the density parameter. Density is measured in kilograms per cubic decimeter (kg/dm3), or equivalently, metric tons per cubic meter (Mg/m3).

By default, a shape has a density of 1.0 kg/dm3.
See Also

ShapeObject::GetShapeDensity