]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/sim.cpp
concerning orbits
[blobs.git] / src / world / sim.cpp
index 0e0b46616694dfd9bf05fbf7089a3cb21b831024..abf2829498f20356115a128801279bf5c53eb10e 100644 (file)
@@ -1,11 +1,14 @@
 #include "Simulation.hpp"
 
+#include "Body.hpp"
+
 
 namespace blobs {
 namespace world {
 
 Simulation::Simulation(Body &r)
 : root(r) {
+       r.SetSimulation(*this);
 }
 
 Simulation::~Simulation() {
@@ -13,6 +16,7 @@ Simulation::~Simulation() {
 
 
 void Simulation::Tick() {
+       time += 0.01666666666666666666666666666666;
 }
 
 }