Simulation of N-bodies (nano galaxies) using Numpy, Pygame in Python

preview_player
Показать описание
Nano galaxies means it has way less number of bodies than actual one, 😅

The calculations are made to matrices so Numpy can multiply so faster than looping in python. The number of particles at most is 500 only. There is a centre particle with mass 1000 times more than the surrounding particles. Made this in python's Pygame.

#pygame #numpy
Background music idea is stolen from veritasium 😝

Commit id: fa302a9
Рекомендации по теме
Комментарии
Автор

That is cool man! I have a gravity-simulating code, but will try yours for sure!

krm
Автор

dude you need to make a tutorial on this

adriancojocaru
Автор

This is so cool, any source code release?

keith
join shbcf.ru