Simple simulation of particle interactions. Implemented using Raylib and Odin
Each group of particles is represented by a color. A group of particles can attract or repel another group of particles. The attraction/repulsion effect has a configurable force and minimum & maximum distance (area of effect). Groups can interact with themselves.
The program has a rudimentary UI that allows you to add/remove groups, change the group particle counts, and configure the interaction rules.
The Save button will save the current simulation settings to a text file named "save.txt". The Load button will reload the simulation settings from the "save.txt" file.
To build and run:
odin run src
Simulating large numbers of particles is CPU instensive. It is recommended to build with optimisations enabled:
odin build src -out:particle-interactions -o:speed