Skip to content

Particle-based approach to fluid simulation. I simulate movement using the Navier Stokes equation. I can simulate 5,000 particles in real time and place objects in the scene, which my particles will bounce off of.

Notifications You must be signed in to change notification settings

jsonnen2/Fluid-Simulation

Repository files navigation

Results

Collision with a triangle mesh:

Unity Instructions

I cloned my Assets folder. To view my particles inside Unity there are some steps to prepare your editor. First, you must create an empty GameObject and connect the spawn_particles.cs script to it. Next, ensure the variables on this GameObject are correct. The prefab must point to PointPrefab from the Prefabs folder. And filepath must point to the saved .txt file generated from fluid_sim.jl. Finally, navigate to Edit -> Project Settings -> Tags and Layers then add a "Particle" tag.

About

Particle-based approach to fluid simulation. I simulate movement using the Navier Stokes equation. I can simulate 5,000 particles in real time and place objects in the scene, which my particles will bounce off of.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published