Go to file
2023-08-05 18:25:55 +02:00
sdl Rename functions and update args 2023-08-05 18:24:54 +02:00
.gitignore Update exec and remove build dir 2023-08-05 18:25:55 +02:00
argparser.c Rename functions and update args 2023-08-05 18:24:54 +02:00
argparser.h First commit 2023-08-04 10:39:16 +02:00
constantes.h First commit 2023-08-04 10:39:16 +02:00
exec.sh Update exec and remove build dir 2023-08-05 18:25:55 +02:00
functions.c First commit 2023-08-04 10:39:16 +02:00
functions.h First commit 2023-08-04 10:39:16 +02:00
gravity.c First commit 2023-08-04 10:39:16 +02:00
gravity.h First commit 2023-08-04 10:39:16 +02:00
gravity.yml First commit 2023-08-04 10:39:16 +02:00
main Rename functions and update args 2023-08-05 18:24:54 +02:00
main.c Rename functions and update args 2023-08-05 18:24:54 +02:00
motion.c Rename functions and update args 2023-08-05 18:24:54 +02:00
motion.h Rename functions and update args 2023-08-05 18:24:54 +02:00
README.md First commit 2023-08-04 10:39:16 +02:00
yaml.c First commit 2023-08-04 10:39:16 +02:00
yaml.h First commit 2023-08-04 10:39:16 +02:00

Introduction

This personal project is for making some simulator in C for the understanding of the Astrophysics, like the gravity. I use the library SDL2 for the graphics.

FYI, I am not an expert in astrophysics, it's not my field, but just a hobby. If you find some wrong maths calculation, please, let me know.

Installation

For executing the code, you must install these packages:

apt install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev

Configuration

The gravity.yml file contains all data for the physics laws, like the gravity or the data of the planet. You can change these datas and you can see hoz the gravity.

Projectile

For understanding the gravity, we can simulate the launch of a projectile and to see what happens. We can play with that and change some informations regarding the projectile and the planet.