Errors and Diagnostics
Cleanup Order
Prefer one central managed shutdown. jolt_stop() performs dependency-aware teardown, clears registries, event buffers and timing state, destroys the default world and shuts down the native runtime. Repeated calls are safe and the first cleanup error is preserved.
// Cleanup event of the persistent physics controller.
if (!jolt_stop()) {
var err = jolt_get_error();
show_debug_message(err.context + ": " + err.message);
}