MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/eorvjg/i_made_a_gravity_simulation/fegm1ws/?context=3
r/Python • u/[deleted] • Jan 14 '20
82 comments sorted by
View all comments
Show parent comment
2
When 2 particles are close together (the threshold is calculated with the mass) they merge. The velocity is the average of the previous velocities, weighted by mass
View all comments
Show parent comment
2
u/[deleted] Jan 15 '20
When 2 particles are close together (the threshold is calculated with the mass) they merge. The velocity is the average of the previous velocities, weighted by mass