โ
๐ง Fluid Simulation
Objective: Explore real-time fluid dynamics using Smoothed Particle Hydrodynamics (SPH). Add fluid, create obstacles, and watch particles interact.
Controls:
- Click and drag to add fluid particles
- Select Obstacle and click/drag to draw barriers
- Select Clear and click to remove obstacles or particles
- Different fluid types: Water, Oil (viscous), Lava (glows), Splash (bouncy)
- Gravity slider controls fluid falling speed
- Viscosity slider controls fluid thickness
- Touch: works like mouse for adding fluid and obstacles
Rules: This is an SPH (Smoothed Particle Hydrodynamics) simulation. Particles interact through pressure, viscosity, and surface tension forces. The simulation runs in real time โ more particles create more realistic fluid behavior but require more computational power.