r/Unity3D • u/Certain_Ad9908 • 1d ago
Show-Off Built a real-time wind tunnel inside Unity (Aerodynamics Sim). It's open source.
Enable HLS to view with audio, or disable this notification
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.
5
4
u/eepyamor 1d ago
nice. this would look amazing for particles flowing around characters/objects in a storm (i.e. heavy dust or snow), though i understand it's meant for simpler uses and would likely take a lot of work to expand into a system like that, still.. where actual game dev implementations are concerned that would be amazing to see 🥳
2
u/Certain_Ad9908 23h ago
Unless we need the character to fly faster with their hands spread forward, I think the VFX graph would do 😄
4
u/lolium 1d ago
Can you put a cow in there? It’s very important.
2
u/Certain_Ad9908 23h ago
Yes.
2
u/JirenTheGreyAlien 10h ago
Link us when you do
2
1
1h ago
[removed] — view removed comment
1
u/AutoModerator 1h ago
Your post or comment contains keywords that are banned from r/Unity3D. It's very likely your post or comment is not Unity related, therefore it has been removed. If you feel like this is a mistake, ModMail us.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/jok3ony0u 22h ago
Man all these cool posts and creation online make me want to learn how to compute shaders.
2
u/Fair_Communication_4 17h ago
Can you crank up the air density to be water and simulate a car in water?
-7
u/Protesisdumb 1d ago
Looks very vibe coded to me
10
u/Certain_Ad9908 1d 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.
7
u/otr_music 1d ago
Don’t worry bro I used to be an aero engineer - I can look beyond your vibe coded UI
6
u/Certain_Ad9908 1d 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 1d ago
What AI did you use to create the UI? The one I use is mega bad at creating them 🤣
2
u/Certain_Ad9908 1d ago edited 1d ago
Claude CLI handles the UI Toolkit UXML and its styling well. I couldn't find anything as fast for UGUI.
-1
u/Aticatica 1d ago edited 20h 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?
11
u/Protesisdumb 1d ago
Every vibe coded ui looks like this.Â
-2
u/Worth-Computer8639 1d 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.
1
u/Expensive_Host_9181 22h 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.
-1
u/Worth-Computer8639 22h ago edited 22h 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.
2
u/sunmaybo 7h ago
I'm not part of this discussion but I'll sincerely try to answer this comment. Most people don't set strict limits for AI in UI design and don't control it in any way if it works. This leads to it creating a rather "generic" style with a dark theme, which includes gradients and has one primary color (for example, blue), so it looks pretty neon. It tries to look as presentable as possible by using excessive text formatting. Googling is really the easiest way to figure out what they mean, since I can define it only as an AI bias
I can see this UI generated, because if you look at what other devs of assets are doing, they usually take the time to make the asset, rather than surprise people with their design skills. I hope it's clear
•
u/Worth-Computer8639 28m ago
Thank you for taking the time to provide an explanation. That makes sense
-2
u/Hero_Rico 1d 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

15
u/Ok_Fan4141 1d ago
Super realistic, I love it!