destroyBody method
Destroys body and every joint holding it. Only bodies createBody
made: a character's body (characterBody) goes with its character.
Implementation
@override
void destroyBody(int body) {
// A character's body goes with its character.
if ((bodies[body]?.character ?? 1) != 0) return;
_destroyBody(body);
}