Class DefaultTimestepper
- Namespace
 - BepuPhysics
 
- Assembly
 - BepuPhysics.dll
 
Updates the simulation in the order of: sleeper -> predict body bounding boxes -> collision detection -> substepping solve -> data structure optimization. Each substep of the solve simulates and integrates a sub-timestep of length dt/substepCount.
public class DefaultTimestepper : ITimestepper
  - Inheritance
 - 
      
      DefaultTimestepper
 
- Implements
 
- Inherited Members
 
Methods
Timestep(Simulation, float, IThreadDispatcher)
Performs one timestep of the given length.
public void Timestep(Simulation simulation, float dt, IThreadDispatcher threadDispatcher = null)
  Parameters
simulationSimulationSimulation to be stepped forward in time.
dtfloatDuration of the time step.
threadDispatcherIThreadDispatcherThread dispatcher to use for execution, if any.
Events
BeforeCollisionDetection
Fires after bodies have their bounding boxes updated for the frame's predicted motion and before collision detection.
public event TimestepperStageHandler BeforeCollisionDetection
  Event Type
CollisionsDetected
Fires after all collisions have been identified, but before the substep loop begins.
public event TimestepperStageHandler CollisionsDetected
  Event Type
ConstraintsSolved
Fires after the solver executes and before the final integration step.
public event TimestepperStageHandler ConstraintsSolved
  Event Type
Slept
Fires after the sleeper completes and before bodies are integrated.
public event TimestepperStageHandler Slept