simulation of planets
  • C 94.5%
  • CMake 5.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-18 13:18:26 +02:00
.gitignore Remove IDE files from repository 2026-09-12 17:14:17 +02:00
boldfont.ttf added font 2026-09-12 20:51:01 +02:00
CMakeLists.txt Update cmake 2026-09-27 12:18:50 +02:00
font.ttf added font 2026-09-12 20:51:01 +02:00
main.c Update cmake 2026-09-27 12:18:50 +02:00
readme-header.png readme header img upload 2026-09-12 19:03:25 +02:00
README.md Update README.md 2026-09-20 10:22:19 +00:00
Screen-Recording.mp4 new screen recording 2026-10-18 13:18:26 +02:00

Header image

Planet Sim

A program that simulates gravity between planets and in the future will also simulates planet destruction.

Demo

Usage:

  1. Run the binary.
  2. Click new planet button.
  3. Give your planet a name, mass, diameter. Optionally set the velocity.
  4. Place the planet. click for no velocity and drag to give the planet velocity.
  5. To follow your planet click on it or click on it in the planet list.

Compilaton

cmake -S . -B build
cmake --build build

then run the executable in the build folder.

TODO:

  • Improve collision
  • Compilation instructions

AI usage

only AI in-line autocomplete was used.