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 1ac7e359a4 Migrate config system from space-separated to TOML format 6 months ago
configs Migrate config system from space-separated to TOML format 6 months ago
docs update manual TODO 6 months ago
ext Migrate config system from space-separated to TOML format 6 months ago
src Migrate config system from space-separated to TOML format 6 months ago
tests Migrate config system from space-separated to TOML format 6 months ago
.gitignore don't track tags file 6 months ago
.gitmodules Migrate config system from space-separated to TOML format 6 months ago
CLAUDE.md update directives for claude to ignore manual TODO 6 months ago
Makefile Migrate config system from space-separated to TOML format 6 months ago
README.md Condense README and update project configuration 6 months ago

README.md

Orbital Mechanics Simulation

A 3D orbital mechanics simulation using a 2-body gravitational model with sphere of influence (SOI) transitions. Built with C-style C++ and raylib.

Features

  • 2-body gravitational physics with SOI transitions
  • Eccentric orbit support (circular and elliptical)
  • 3D real-time visualization with interactive camera
  • Configurable star systems via text files
  • Simulation controls (pause, speed adjustment)
  • 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.txt    # Run with a custom configuration file:

Controls

  • Arrow Keys: Rotate and zoom camera
  • Space: Pause/Resume simulation
  • +/-: Speed up/slow down simulation
  • I: Toggle info display
  • ESC: Quit

Documentation

License

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