b2w_setBodyMass function
void
b2w_setBodyMass()
Give the body this mass instead of the one its shapes' density adds up to. The centre of mass stays where the shapes put it, and the rotational inertia scales with the mass, so the body turns as before. Call it after adding the shapes (adding one sums the mass again), and again after b2w_setBodyType.
Implementation
@ffi.Native<ffi.Void Function(ffi.Int64, ffi.Float)>()
external void b2w_setBodyMass(int bodyHandle, double mass);