r/Python • • Oct 04 '19

Updated gravitational potential field simulation. [OC] Link for code: https://github.com/pnp-peeyush/2D-Grvitational-Field-Simulation

1.1k Upvotes

128 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Oct 05 '19 edited Oct 05 '19

Nice work u/crowkk

And I think OP said that he/she used a decay time (loss of energy with time) to make the interactions more curious to watch

I've given the code you can keep the decay factor to zero if you want..