Scribble python kid learn octree and try to do clean code
Find a file
Crizomb 8b2b2a9c34
increasing performances
explicit for loop instead of sum in Node.get_force
2023-02-15 13:38:55 +01:00
barnes-hut-galaxy-new.py increasing performances 2023-02-15 13:38:55 +01:00
LICENSE Initial commit 2023-02-14 00:46:03 +01:00
README.md Update README.md 2023-02-14 12:58:44 +01:00
vec3.py better performances 2023-02-15 13:36:58 +01:00

galaxy-sim

simple 3D galaxy simulation in pure python using barnes-hut algorithm. readable code. pypy compatible.

I followed this guide : http://arborjs.org/docs/barnes-hut#:~:text=The%20Barnes%2DHut%20algorithm%20is,of%20which%20may%20be%20empty).

using vispy for rendering :

galaxies