Allocate and initialize a cpBody.

cpBodyNew(mass, moment)

Arguments

mass

[cpFloat]

moment

[cpFloat]

Value

[cpBody *]

Details

C function prototype: CP_EXPORT cpBody* cpBodyNew(cpFloat mass, cpFloat moment);