API ReferenceGE Extensionseditor
Physics Reloader
Developer utility to destroy and recreate the physics engine at runtime for hot-swapping `libbeamng.dll`.
Developer utility to destroy and recreate the physics engine at runtime for hot-swapping libbeamng.dll.
Overview
Provides a simple editor window with two buttons: destroyPhysics and createPhysics. Intended for engine developers to swap the physics DLL without restarting the game.
Public Functions
| Function | Signature | Description |
|---|---|---|
M.openWindow | () | Shows the Physics Reloader window |
M.onEditorGui | () | Renders destroy/create physics buttons |
M.onEditorInitialized | () | Registers the window and menu item |
Usage Example
-- Open from Window > Physics Reloader
-- 1. Click "destroyPhysics" to tear down the physics engine
-- 2. Replace libbeamng.dll on disk
-- 3. Click "createPhysics" to reinitializeNotes
- Sets
BeamEngineandbeglobals tonilwhen physics is destroyed. - Only shows the appropriate button based on current physics state.
- This is a development-only tool, not for end users.
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide