vibe coding an orbital mechanics simulation to try out claude code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
cinnaboot 8aaf5c7976 Add Data Flow section, Main Program section, and enhance Technical Notes with details from verbose_project_overview.md: SOI hysteresis, physics steps per frame, code style, architecture layers 11 months ago
configs Fix TOML config issues: remove duplicate Venus, fix binary star array format, remove obsolete .txt files, update README 11 months ago
docs Add Data Flow section, Main Program section, and enhance Technical Notes with details from verbose_project_overview.md: SOI hysteresis, physics steps per frame, code style, architecture layers 11 months ago
ext Migrate config system from space-separated to TOML format 11 months ago
src Remove headless mode and legacy test documentation: simplify main.cpp, update README with Testing section, delete obsolete test_verification.md, remove test-manual target from Makefile 11 months ago
tests Fix TOML config issues: remove duplicate Venus, fix binary star array format, remove obsolete .txt files, update README 11 months ago
.gitignore don't track tags file 11 months ago
.gitmodules Migrate config system from space-separated to TOML format 11 months ago
CLAUDE.md update directives for claude to ignore manual TODO 11 months ago
Makefile Remove headless mode and legacy test documentation: simplify main.cpp, update README with Testing section, delete obsolete test_verification.md, remove test-manual target from Makefile 11 months ago
README.md clean up README.md manually 11 months ago

README.md

Orbital Mechanics Simulation

A 3D orbital mechanics simulation using a 2-body gravitational model with sphere of influence (SOI) transitions.

Features

  • 2-body gravitational physics with SOI transitions
  • Configurable star systems via toml files
  • Solar system and binary star example configurations

Getting Started

Cloning the Project

git clone --recursive https://github.com/yourusername/claudes_game.git
cd claudes_game
git submodule update --init --recursive  # If already cloned without --recursive

Dependencies (Debian 13)

sudo apt update
sudo apt install -y build-essential g++ make libx11-dev libxcursor-dev \
    libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev

Building

make              # Build raylib (first time) and compile sources
make rebuild      # Clean and rebuild
make clean-all    # Clean everything including raylib

Running

./orbit_sim       # Run with the default solar system configuration
./orbit_sim configs/example_binary_star.toml    # Run with a custom configuration file:

Documentation

Testing

make test              # Run full automated test suite

The test suite validates:

  • Orbital period accuracy (Earth, Mars)
  • Energy conservation (RK4 integration)
  • SOI transitions and multi-body interactions
  • Eccentric orbit behavior (comets, parabolic, hyperbolic)

All tests use Catch2 framework with configurable time steps and durations.

License

This project is provided as-is for educational and research purposes.