A real-time 3D visualization of the three-body gravitational problem with trailing effects and a starfield background.
Three celestial bodies gravitationally attracting each other, creating chaotic orbital patterns. The simulation shows motion trails and automatically resets when bodies fly apart. Simulation
A beautiful real-time 3D visualization of the chaotic three-body gravitational problem with elegant trailing effects and a dynamic starfield background.
- Go 1.22+
- OpenGL 4.1 support
- macOS:
brew install glfw
go run .
Close the window to exit.
This is a demonstration project for educational purposes.
Built with:
- go-gl/gl - OpenGL bindings
- go-gl/glfw - GLFW bindings
- go-gl/mathgl - 3D math library