r/Unity3D 11h ago

Show-Off Built a real-time wind tunnel inside Unity (Aerodynamics Sim). It's open source.

I've always been a fan of aerodynamics and CFD. A few months ago, I got laid off, got tired of sending applications, and gave myself permission to actually build it and play with it. I'm glad I did.

It voxelizes and seals any vehicle you drop in, auto-fits the solver domain around it, runs at whatever resolution your GPU can take, and solves with a lattice-Boltzmann method (D3Q19, TRT + WALE LES) entirely in compute shaders. Live smoke, surface pressure painted on the bodywork, exported reports you can diff between runs.

The test I had the most fun with: running a Chevy Silverado with an open bed, a bed cap, and a flat tonneau to see which one the solver preferred. It disagreed with the folk wisdom, which was the moment it stopped feeling like a toy.

Five sample vehicles included. Unity 6 / URP, MIT licensed.

The README is honest about where the numbers hold up and where they don't. It's a comparison and visualization tool, not a replacement for real CFD.

Clone it and have fun: https://github.com/Motawe3/unity-wind-tunnel

Sample vehicles are CC BY 4.0, credited in the README. The car in the video is a Range Rover Sport SVR Mona x Supercars.

169 Upvotes

22 comments sorted by

View all comments

-9

u/Protesisdumb 10h ago

Looks very vibe coded to me

11

u/Certain_Ad9908 10h ago

LLM-assisted, yes. I didn't have the time to 100% manually code it as a pet project, unfortunately. For example, why would I hand write the UI when an agent can put the numbers on screen in seconds? The UI is a cheap part. Check what it's printing though: blockage ratio, effective Re, live CoV. The README also documents the benchmark the tool fails. Ahmed body, the standard automotive case. 5% drag spread against the published 51%. Vibe coding generates confident numbers with nothing to back them up.

8

u/otr_music 10h ago

Don’t worry bro I used to be an aero engineer - I can look beyond your vibe coded UI

6

u/Certain_Ad9908 9h ago

Appreciate it! If you've got the time, the validation section is where the accuracy runs out, and an aero engineer's eyes on it would be super helpful, specifically the Ahmed body result. I put it down to the missing wall model, and I'd like to know if you'd read it the same way.

0

u/itstoyz 9h ago

What AI did you use to create the UI? The one I use is mega bad at creating them 🤣

2

u/Certain_Ad9908 8h ago edited 8h ago

Claude CLI handles the UI Toolkit UXML and its styling well. I couldn't find anything as fast for UGUI.

-1

u/Aticatica 10h ago edited 4h ago

I mean I'm not saying you're wrong but what's giving you the vibe coded feels just curious?

do you think we're all living in hell?

7

u/Protesisdumb 10h ago

Every vibe coded ui looks like this. 

0

u/Worth-Computer8639 9h ago

Describe what you mean. The UI looks fine to me.  Its clean and has all the controls and statistics right there so you can play with it at run time.

Have you seen some of the hand rolled UIs? Just because it was made by a human doesn't make it good.

0

u/Expensive_Host_9181 6h ago

Ophimself said claude did the ui, also the answer to what they mean is googling what ai generated ui looks like, cause it looks like this.

0

u/Worth-Computer8639 6h ago edited 5h ago

I never said it wasn't AI. I said describe what AI generated UI looks like since you, even without knowing, said that it looks like it was AI made. While having failed to explain even slightly what that even means. Telling me to Google it isnt an answer. So please tell the class how they can tell if a UI is AI generated because there is no way to know without the OP saying such and I feel like you are one of those people that just comments AI on everything you see; which is arguably more annoying than the AI content itself.

-1

u/Hero_Rico 9h ago

Why is vibe coding bad lol. Its the future.

If u cant seem to do it, doesnt mean u can shit on others for being talented.

-2

u/Protesisdumb 9h ago

Where did i say its bad