R/cpShape.R
cpShapeSetDensity.Rd
Set the density of this shape to have Chipmunk calculate mass properties for you.
cpShapeSetDensity(shape, density)
shape | [ |
---|---|
density | [ |
C function prototype: CP_EXPORT void cpShapeSetDensity(cpShape *shape, cpFloat density);