release method
A body made of shape has gone.
Implementation
void release(Shape3D shape) {
final ref = _refs[shape];
if (ref == null) return;
if (--ref.bodies > 0) return;
_refs.remove(shape);
ref.release();
}
A body made of shape has gone.
void release(Shape3D shape) {
final ref = _refs[shape];
if (ref == null) return;
if (--ref.bodies > 0) return;
_refs.remove(shape);
ref.release();
}