Interface ITimestepper
- Namespace
- BepuPhysics
- Assembly
- BepuPhysics.dll
Defines a type capable of updating the simulation state for a given elapsed time.
public interface ITimestepper
Methods
Timestep(Simulation, float, IThreadDispatcher)
Performs one timestep of the given length.
void Timestep(Simulation simulation, float dt, IThreadDispatcher threadDispatcher = null)
Parameters
simulation
SimulationSimulation to be stepped forward in time.
dt
floatDuration of the time step.
threadDispatcher
IThreadDispatcherThread dispatcher to use for execution, if any.
Events
BeforeCollisionDetection
Callbacks to execute immediately before collision detection executes.
event TimestepperStageHandler BeforeCollisionDetection
Event Type
CollisionsDetected
Callbacks to execute after collision detection completes.
event TimestepperStageHandler CollisionsDetected