Interface IBox2DSimulationUpdate
Implemented by objects that want to run logic before and after each simulation update, mirroring the ISimulationUpdate pattern of Stride's Bepu physics integration.
public interface IBox2DSimulationUpdate
Methods
AfterSimulationUpdate(Box2DSimulation, float)
Called after the simulation has advanced.
void AfterSimulationUpdate(Box2DSimulation simulation, float deltaTime)
Parameters
simulationBox2DSimulationThe simulation that was stepped.
deltaTimefloatThe time step in seconds.
SimulationUpdate(Box2DSimulation, float)
Called before the simulation advances.
void SimulationUpdate(Box2DSimulation simulation, float deltaTime)
Parameters
simulationBox2DSimulationThe simulation being stepped.
deltaTimefloatThe time step in seconds.