The author plans to release the simulation in early 2024.
Over the past couple of weeks, a Reddit user known as FrenzyTheHedgehog shared a couple of incredible demos showcasing Fluid Frenzy, an upcoming fluid simulation set to be released as a downloadable asset in early 2024.
Powered by Unity, the simulation runs on a 2D Height Map and uses Navier-Stokes alongside a shadow water simulation. According to the author, Fluid Frenzy is fully capable of interacting with the engine's renderers and terrain, enabling one to create flowing rivers, add/remove water, place obstacles, make waves, and set up buoyant objects.
Moreover, the setup runs entirely on GPU, making it extremely performance-friendly and compatible even with aging hardware, with the developer himself using a seven-year-old laptop with an NVIDIA GTX 1050 GPU and i7-7700HQ CPU.
"The box is the width/length of the boat (based of rigid body bounds)," commented the author on how buoyancy was set up. "I scale the height down since there's a lot of "emptiness" in the mesh in the Y direction. I just extract the 8 corners of the box like that.
I have 1 Rigidbody with gravity disabled on the boat and apply forces using AddForceAtPosition. First I add 1/8th of gravity for each point to the rigid body. Then for each point, if the a point is under water I apply the upward buoyancy force using Archimedes law to the Rigidbody at the location of that point.
You can add more points to make it more accurate then each AddForceAtPosition comes 1/Nth. Some people create whole 3D grids of their mesh to check each point creating more accurate results, but that seemed like overkill to me."
As mentioned above, the creator plans to ship the asset sometime very soon, so we highly encourage you to follow FrenzyTheHedgehog on YouTube and Reddit so as not to miss any future updates.
Also, don't forget to join our 80 Level Talent platform and our Telegram channel, follow us on Instagram, Twitter, and LinkedIn, where we share breakdowns, the latest news, awesome artworks, and more.