Extend config format to support both circular and eccentric orbits using
eccentricity and semi-major axis parameters. All bodies now use the same
format: e=0 for circular orbits, e>0 for eccentric orbits.
Velocity calculation uses vis-viva equation for all cases. Add example
comet with highly eccentric orbit (e=0.7) to test configuration.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Physics Updates (bodies.cpp):
- Root bodies now apply gravitational forces to each other
- Physics loop split into: root body updates, then child body updates
- Enables binary/multiple star systems to orbit their barycenter
Config Loader Updates (config_loader.cpp):
- Detect multiple root bodies (parent_index = -1)
- Calculate system barycenter (center of mass)
- Set initial velocities for root bodies to orbit barycenter
- Add debug output showing barycenter and orbital speeds
Binary star systems now work correctly with both stars
orbiting their common center of mass.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Orbital mechanics simulation with 2-body physics and SOI transitions.
Core Features:
- 2-body gravitational physics with sphere of influence transitions
- Real-time 3D visualization using raylib
- Configurable star systems via text files
- Interactive controls (camera, pause, speed)
Technical Implementation:
- C-style C++ (structs and functions, no classes)
- Modular architecture (physics, bodies, config loader, renderer)
- Euler integration for orbital mechanics
- SOI detection using Hill sphere approximation
Configuration System:
- Solar system with realistic data (Sun, 8 planets, 5 major moons)
- Binary star system example
- Easy to create custom systems via simple text format
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>