]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/sim.cpp
basic needs
[blobs.git] / src / world / sim.cpp
index 8b4c2140c2ba96b672c9dd08ac7987223b52c9f9..aedc5cf01017df98b217b87dcc4991b9ddf8848e 100644 (file)
@@ -40,8 +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->Cache();
+               body->Tick(dt);
        }
 }