GopherDevGames / CppSand

0 stars 0 forks source link

Pressure layer (or velocity exchange) #4

Open GopherDevGames opened 1 month ago

GopherDevGames commented 1 month ago

Required #1 to be completed first.

Adding a pressure layer (just an array of floats) would make reactions involving combustion, explosion etc. to work better, but I'm not sure on how that would make sense considering that void is considered vacuum. In most sand games, void is considered air so pressure makes sense, but in this simulator pressure doesn't make sense.

Maybe allowing particles to exchange velocity (by brushing next to each other and/or hitting each other) would work roughly the same and make more sense?

Making the particles also have their own masses would also help then, a small sand molecule would transfer less speed to a heavy tungsten one.

GopherDevGames commented 1 month ago

Solid particles would, by default, be unmovable unless their motion exceeds a certain threshold in a single calculation. Then they would be pulverized into a powder.