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 6c28eb1560 update manual TODO 3 weeks ago
configs Remove deprecated comet orbit test and config 6 months ago
docs update manual TODO 3 weeks ago
example Split visualizer into example/ sub-project 3 months ago
ext Split visualizer into example/ sub-project 3 months ago
old_tests cleanup: remove old_tests for test_maneuver_planning 3 weeks ago
scripts refactor test_maneuver_planning: SCENARIO/SECTION pattern, quantitative assertions, TOML 1.0 config, precalc script 3 weeks ago
src Add BurnResult to capture exact pre-burn state vectors 2 months ago
tests refactor test_maneuver_planning: SCENARIO/SECTION pattern, quantitative assertions, TOML 1.0 config, precalc script 3 weeks ago
.gitignore update .gitignore 2 months ago
.gitmodules Split visualizer into example/ sub-project 3 months ago
AGENTS.md document '{}' instead of '{0}' for zero initialization 2 months ago
Makefile re-add ctag update to default Makefile target 2 months ago
README.md Update docs for library/visualizer split 3 months ago
continue.md refactor test_maneuver_planning: SCENARIO/SECTION pattern, quantitative assertions, TOML 1.0 config, precalc script 3 weeks ago
opencode.json Restructure documentation: extract and consolidate 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.

Features

  • 2-body gravitational physics with SOI transitions
  • Configurable star systems via toml files

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

This initializes submodules in both ext/ (tomlc17) and example/ext/ (raylib, raygui).

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 \
    libcatch2-dev

Building

make              # Build library (liborbit.a), tests, and visualizer example
make lib          # Build library only
make example      # Build visualizer only
make rebuild      # Clean and rebuild all
make clean-all    # Clean everything

The visualizer (./build/orbit_sim) links against the core simulation library.

Running

./build/orbit_sim # Run visualizer with default config

Pass a config file as argument: ./build/orbit_sim tests/test_moon_orbits.toml

Documentation

Testing

make test              # Run full automated test suite

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

License

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