X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fworld%2Fsim.cpp;h=8c3749f347bff8963783cb2f322c60f22da37683;hp=b6a198d7365a7336be1d7e224b6fe4aaddd1656b;hb=dd8b3145a03ed676b0ae6311c29fc3d68f666b15;hpb=6c1097479fd1ea41f0f76b91e67613822acf2e90 diff --git a/src/world/sim.cpp b/src/world/sim.cpp index b6a198d..8c3749f 100644 --- a/src/world/sim.cpp +++ b/src/world/sim.cpp @@ -37,8 +37,7 @@ void Simulation::AddSun(Sun &s) { suns.insert(&s); } -void Simulation::Tick() { - constexpr double dt = 0.01666666666666666666666666666666; +void Simulation::Tick(double dt) { time += dt; for (auto body : bodies) { body->Tick(dt);