jj_destroy_all function

  1. @Native<Void Function()>()>()
void jj_destroy_all()

Destroys every world, with its bodies, joints and characters. Used on hot restart, when Dart state is gone but the native library stays loaded. Shapes Dart still holds are not touched.

Implementation

@ffi.Native<ffi.Void Function()>()
external void jj_destroy_all();