A simple terminal gravity simulator written in Go
+
/-
changes the speed of the simulationf
enables the rendering of the acceleration magnitudec
toggles clearing the screen each frame (allows to see traces behind moving objects)mouse wheel
scrolling zooms in and outmouse panning
(while holding left mouse button) moves the view around
- For better rendering resolution all bodies are drawn as dots using Braille symbols
- The camera automatically moves with the center of mass of the system
- I'm running it in Kitty on Linux, it also works on Windows, but can be slow (tested with Windows Terminal)