I am programming a physics simulation with few particles (typically 3, no more than 5).
In a condensed version my code structure like this:
#include<