Table of Contents

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

simulation Simulation

Simulation to be stepped forward in time.

dt float

Duration of the time step.

threadDispatcher IThreadDispatcher

Thread 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

TimestepperStageHandler

CollisionsDetected

Fires after all collisions have been identified, but before the substep loop begins.

public event TimestepperStageHandler CollisionsDetected

Event Type

TimestepperStageHandler

ConstraintsSolved

Fires after the solver executes and before the final integration step.

public event TimestepperStageHandler ConstraintsSolved

Event Type

TimestepperStageHandler

Slept

Fires after the sleeper completes and before bodies are integrated.

public event TimestepperStageHandler Slept

Event Type

TimestepperStageHandler