hunar4321 / particle-life

A simple program to simulate artificial life using attraction/reuplsion forces between many particles
MIT License
2.93k stars 291 forks source link

add a 'gravity' slider. #69

Closed skal65535 closed 1 year ago

skal65535 commented 1 year ago

Effect of gravity is just to force particles to interact more at the bottom where they 'precipitate'.

skal65535 commented 1 year ago

forgot to mention that all particles have the same (unit) mass for now.

ker2x commented 1 year ago

it might be interesting to have the particle attracted to the center instead of downward, if the world is unbounded they just vanish out of screen

skal65535 commented 1 year ago

the html version has a 'wall repel' feature to prevent this. Is it present in the cpp version?

ker2x commented 1 year ago

the html version has a 'wall repel' feature to prevent this. Is it present in the cpp version?

no, i suppose i'll add it

edit : i just added it. thx