Coding Adventure: Simulating Fluids

Let’s try to convince a bunch of particles to behave (at least somewhat) like water. Written in C# and HLSL, and running inside the Unity engine. Source code: If you’d like to support me in creating more videos like this, you can do so here: Resources: :// Music: Chapters: 0:00 Intro 0:27 Gravity and Collisions 2:31 Smoothed Particles 3:55 Calculating Density 7:53 The Interpolation Equation 11:58 Gradient Calculations 15:38 The
Back to Top