Show HN: Browser-based interactive 3D Three-Body problem simulator
4 days ago
- #astronomy
- #simulation
- #physics
- The three-body problem is a famous challenge in classical physics, involving predicting the motion of three bodies under mutual gravitational attraction without a general closed-form solution.
- The N-Body Simulator uses Newton's law of universal gravitation to model forces between bodies, including a softening parameter to prevent numerical singularities.
- Supports multiple integration methods: Velocity Verlet for long-term energy conservation and RK4 for higher short-term accuracy.
- Includes preset configurations of famous periodic three-body orbits like the Figure-8 choreography and Lagrange triangular configuration.
- Features real-time 3D physics, interactive controls, and timeline playback for analyzing orbital behavior.
- Energy conservation metrics are displayed, with total energy often negative, indicating a gravitationally bound system.
- Built with Three.js for WebGL-accelerated graphics, tracking up to 10,000 frames of history for analysis.
- Users can adjust parameters, share configurations, and provide feedback to improve the simulator.