F(r=0)
r(F=0)
How to use the simulator:
Click "Spawn particles" button and select an active particle. Click on the canvas to spawn it.
There are 3 types of entities in the simulator:
1. Particles - they move and interact with each other. Each particle has at least one physical property: inertial mass. In real world it's the same as the gravitational mass, but it may not necessaary be in the simulation.
2. Properties - like gravitational mass, electric charge, etc. You can create and edit them as you want.
3. Forces - they affect particles based on their properties. In the Edit Forces menu you set two values: force at r=1 and range coefficient.
F(r=1) is how strong a force is when particles are at 1 pixel apart(*). Positive values are attractive forces for particles with same sign properties, negative are repulsive.
Range coefficient affects how fast force decreases with distance. If it's set to 0, then force is constant. If this coef is k, then force is proportional to 1 / ((r-1)/k + 1)^2
(*)In fact, when particles overlap(distance < radius1+radius2), no force from their interaction is applied. This is done to avoid weirdly strong interactions on small distances
Particles too far from the canvas are despawned.
I'm actively developing the simulation, so if you find any bugs or have a feature request, please contact me through Twitter, or email: antonrzhevskyi@gmail.com
I will appreciate your support by sharing the simulator with friends and if you consider buying me a coffee!
Made by Toha