X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fsim.cpp;h=8c3749f347bff8963783cb2f322c60f22da37683;hb=dd8b3145a03ed676b0ae6311c29fc3d68f666b15;hp=b6a198d7365a7336be1d7e224b6fe4aaddd1656b;hpb=42db7d9d2286e50896ad172e2e4a8fbe65c8a4a9;p=blobs.git 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);