X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fsim.cpp;h=aedc5cf01017df98b217b87dcc4991b9ddf8848e;hb=bcf776b6d51aeb9147bde32da8dd0768b10db993;hp=185046d4cfc4eed8e73270513c7568e3a55a9561;hpb=cacc0641e5174d8b46e7a7086be6a45c87ab3642;p=blobs.git diff --git a/src/world/sim.cpp b/src/world/sim.cpp index 185046d..aedc5cf 100644 --- a/src/world/sim.cpp +++ b/src/world/sim.cpp @@ -40,7 +40,7 @@ void Simulation::Tick() { constexpr double dt = 0.01666666666666666666666666666666; time += dt; for (auto body : bodies) { - body->Rotation(body->Rotation() + dt * body->AngularMomentum() / body->Inertia()); + body->Tick(dt); } }