Files
luna/include/sims.hpp
2025-11-15 18:29:46 +01:00

27 lines
390 B
C++

#ifndef SIMS_HPP
#define SIMS_HPP
#include <SDL3/SDL_render.h>
#include <utility>
class Body {
private:
float x;
float y;
float vx = 1;
float vy = 1;
std::pair<float, float> old_positions[100];
public:
SDL_Renderer* renderer;
Body(int x_pos, int y_pos);
void draw_tail();
void live();
};
void two_bodies(SDL_Renderer* r, Body &a, Body &b);
#endif