Somehow, a few days ago, my mind got stuck on the three-body problem. I wanted to develop a chaos source for Pure Data that would generate simply crazy curves. What could be more natural than developing a simulation for something that is completely unpredictable? The three-body problem is exactly what you need.
I’ve completely redesigned and implemented it in C++. The download now includes binaries for Linux (x64 and ARM). The ARM version can be used with the Organelle.
There’s also a help patch with detailed explanations. A visualization is also available. This is based on node.js and is also located in the directory as a ZIP archive. Just let it run, turn on “Visualizer” in the help patch, and open the URL localhost:8080 in your browser.
The help patch also outputs sound if you want. But don’t expect too much. I’m not a great sound designer.
The build on Windows doesn’t work yet. I know why, though, and I’ll fix it when I get a chance.
The source code is available here:
https://github.com/attackallmonsters/Gravity
Have fun.
—.—-o
—–\–/|\———.
–o—> * <—o
—-/–\|/——-o
—.—-o——.
Version 1.1:
– Contains some improvements in body behavior
– Update in visualization (distance circle, ping noise when body enters or exits this zone, DSP and sound on)
– changed from float to double internally
