// // Created by 0piet on 7/12/2024. // #ifndef GRAVITY_SIMULATOR_H #define GRAVITY_SIMULATOR_H #pragma once #include #include "CelestialBody.h" class Simulator { public: Simulator(); void addBody(const CelestialBody& body); void update(float dt); const std::vector& getBodies() const { return bodies; } private: std::vector bodies; const float G = 6.67430e-11f; // Gravitational constant glm::vec3 calculateGravitationalForce(const CelestialBody& body1, const CelestialBody& body2); }; #endif //GRAVITY_SIMULATOR_H