Oscilous / Rusticles

Simple sand/water particle physics simulation implemented in Rust
1 stars 1 forks source link

Testing #5

Open Oscilous opened 1 year ago

Oscilous commented 1 year ago

Looking for someone to test out the program I wrote. Try to follow documentation and play around with the simulation. Any suggestions are welcome.

morukele commented 1 year ago

@Oscilous I would like to test your project; I just want to confirm if you will be okay with me creating a test folder.

Oscilous commented 1 year ago

@Oscilous I would like to test your project; I just want to confirm if you will be okay with me creating a test folder.

Feel free to fork the repository, and do any changes you like. If you have any suggestions on what to change you can submit a pull request and I'll review the changes. I'm glad that you are interested, thank you for reaching out. :)

morukele commented 1 year ago

Feel free to fork the repository, and do any changes you like. If you have any suggestions on what to change you can submit a pull request and I'll review the changes. I'm glad that you are interested, thank you for reaching out. :)

Alright, I will let you know my thoughts later today!

morukele commented 1 year ago

I have tested the simulation and it works really well. It is responsive and the pixels mirror real-life physics.

One thing I noticed is that the water does not displace the sand particles when it pushes against it. For instance when there is a small lump of sand and a lot of water, ideally, the pressure of the water should be enough to flatten the sand, but in the simulator, the sand is still intact as though it can withstand the pressure of the water.

I have added a photo to illustrate. In the screenshot, the small lump of sand should have been flattened by the water.

Capture d’écran 2023-07-07 à 20 28 18
Oscilous commented 1 year ago

I have tested the simulation and it works really well. It is responsive and the pixels mirror real-life physics.

One thing I noticed is that the water does not displace the sand particles when it pushes against it. For instance when there is a small lump of sand and a lot of water, ideally, the pressure of the water should be enough to flatten the sand, but in the simulator, the sand is still intact as though it can withstand the pressure of the water.

I have added a photo to illustrate. In the screenshot, the small lump of sand should have been flattened by the water.

Capture d’écran 2023-07-07 à 20 28 18

Thank you for your response, I really appreciate you taking some time to check this out. You have made a great point. I didn't take into account pressure. I thought the water would not prevent the sand from pilling up under water, like currently. So if I understand correctly, the sand should try to be as flat as possible due to the water pushing down on it? Additionally, what if the water surface is not fully flat, would the sand be lower, where there is more water above it, due to pressure?

morukele commented 1 year ago

The way I see it, it depends on if the water is flowing towards the sand or it is just on top of the sand. It is flowing towards the sand, the pressure should displace the sand and make it flat.

If the water is static, then ideally it should not displace the sand.