So starting from the beginning
One day (03/12/2021) I encountered a video with title of “Recreating Noita’s Sand Simulation in C and OpenGL | Game Engineering”
After 3 or 6 minutes of watching this video i decided to make my own small simulator and there we go:
9 hours of working (mostly debugging)
and i added 3 elements: key 1 is for water, key 2 is for sand and key 3 is for air.
No worries tho about the performance as it can handle lots of these cells.