The manager class for all physics engines. Manages the physics contexts and the collision engines. More...
#include <physics_engine.hpp>
Public Member Functions | |
| physics_engine (const jolt_settings &p_settings, flecs::world &p_registry, event::event_bus &p_bus) | |
| void | start () |
| The runtime is specifically the way to start the physics, utilizing defined data from level_scene and eventually any scene to create a physics scene and manage physics step. | |
| void | update (float p_delta_time) |
| Runs a single frame of the simulation. Should at minimum be called 60 fps. If below, it must be called twice. | |
| void | stop () |
| Deletes all physics bodies and shapes. Preps itself for runtime to be called again. | |
The manager class for all physics engines. Manages the physics contexts and the collision engines.