Set the density of this shape to have Chipmunk calculate mass properties for you.

cpShapeSetDensity(shape, density)

Arguments

shape

[cpShape *]

density

[cpFloat]

Details

C function prototype: CP_EXPORT void cpShapeSetDensity(cpShape *shape, cpFloat density);