1 #include "Simulation.hpp"
11 Simulation::Simulation(Body &r, app::Assets &assets)
21 Simulation::~Simulation() {
25 void Simulation::AddBody(Body &b) {
26 b.SetSimulation(*this);
30 void Simulation::AddPlanet(Planet &p) {
35 void Simulation::AddSun(Sun &s) {
40 void Simulation::Tick() {
41 constexpr double dt = 0.01666666666666666666666666666666;
43 for (auto body : bodies) {