Browse Source
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>main
2 changed files with 114 additions and 4 deletions
Loading…
Reference in new issue