Conversation
Co-authored-by: GrantErickson <5058658+GrantErickson@users.noreply.github.com>
GrantErickson
left a comment
There was a problem hiding this comment.
Can you scale, making it 100 times smaller? The velocities and other variables should be adjusted by an appropriate amount.
|
@copilot Can you scale, making it 100 times smaller? The velocities and other variables should be adjusted by an appropriate amount. |
… adjustments Co-authored-by: GrantErickson <5058658+GrantErickson@users.noreply.github.com>
The Three Body Problem setup has been scaled down 100x as requested. The changes include: • Distances scaled down 100x (baseDistance: 1.5e11 → 1.5e9 m) The scaled system maintains chaotic three-body behavior while being much more compact for easier observation. Commit: 25f4034 |
This PR implements a new "Three Body Problem" setup for the Gravity Simulator based on Liu Cixin's renowned science fiction series. The setup demonstrates the chaotic nature of gravitational systems with three massive bodies, now optimized with 100x scaling for better observation.
Features Added
New Three Body Problem Setup
Implementation Details
ThreeBodyclass extending the existingSetupabstract classScaling Applied
Demonstrated Behavior
The simulation showcases classic three-body problem characteristics:
The scaled setup provides an excellent demonstration of why the three-body problem has no general analytical solution and must be solved numerically, with small changes in initial conditions leading to vastly different outcomes over time.
Fixes #3.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.