fixedStep method

void fixedStep(
  1. double fixedDt
)

Runs one fixed step.

Implementation

void fixedStep(double fixedDt) {
  onFixedStepStart?.call();
  app.world.fixedTime
    ..delta = fixedDt
    ..tick += 1;
  _latch.beginStep();
  try {
    app.runSchedule(Schedules.fixedPrePhysics);
  } finally {
    _latch.endStep();
  }
  app.world.removeAfterTrackerOrNull?.tick(fixedDt);
  onCommandBoundary?.call();
}