]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/sim.cpp
half-assed implementation of "other" body rendering
[blobs.git] / src / world / sim.cpp
index 185046d4cfc4eed8e73270513c7568e3a55a9561..8b4c2140c2ba96b672c9dd08ac7987223b52c9f9 100644 (file)
@@ -41,6 +41,7 @@ void Simulation::Tick() {
        time += dt;
        for (auto body : bodies) {
                body->Rotation(body->Rotation() + dt * body->AngularMomentum() / body->Inertia());
+               body->Cache();
        }
 }