Feedback on Fluid Simulation Game?

So I just made a pretty realistic fluid simulation for jumping in water, etc

  • You can change all the settings to make the water interact in any way

  • You can spawn a ball to see how it interacts with water

Heres the game: Realistic Fluid Simulation - Roblox

Preview:

If its laggy you can increase voxel size but for me it runs smooth

3 Likes

This is sick could you explain the math behind it?

3 Likes

Kinda simple just makes a grid with “voxels” or just lots of glass parts and then calculates the new height of each voxel by averaging the height of the neighbor voxels and applying damping and surface tension forces to simulate water movement, it determines the force of for example jumping in to it from 5 studs up vs 100 by the object’s position, size, and velocity

4 Likes