]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/sim.cpp
basic needs
[blobs.git] / src / world / sim.cpp
index 185046d4cfc4eed8e73270513c7568e3a55a9561..aedc5cf01017df98b217b87dcc4991b9ddf8848e 100644 (file)
@@ -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);
        }
 }