Welcome to the Unity 6 Wind Simulation Project! This real-time simulation includes:
- Streamline wind visualization with color-coded velocity & turbulence.
- Adjustable wind properties (speed, turbulence, vortex intensity, GPU toggle).
- Building deflection system (wind redirects around objects).
- Real-world weather data support (via EPW files).
Designed for novices, this guide will help you set up & run the simulation in Unity 6.
- Unity Hub with Unity 6 (6000.0.39f1 LTS) installed.
- Universal Render Pipeline (URP) enabled.
- Windows/Linux/macOS Build Support.
- Open Unity Hub → New Project.
- Select "3D Sample Scene (URP)" template.
- Name it "Wind_Simulation" → Click Create.
- Download this repository.
- Copy
Assets/
,ProjectSettings/
, andPackages/
into your new project folder. - Open Unity (if not open) → Click Add Project → Select the folder.
- Wait for Unity to re-import.
- Project Window →
Assets/Scenes/WindSimulation.unity
→ Double-click to open.
- Find the GameObject with
WindUIManager.cs
(e.g.UIManagerObject
). - In the Inspector, set UIDocument > Source Asset to
WindUI.uxml
.
- The wind simulation runs in real time.
- UI appears with sliders, toggles & buttons.
Add Building
→ Places a 40m cube as a wind obstacle.Import OBJ
→ Loads custom building models (.obj
or.fbx
).
Wind Speed
→ Adjusts airflow velocity.Turbulence
→ Controls random swirls.Vortex Intensity
→ Increases eddies & rotation.Height-Based Wind
→ Higher buildings face stronger winds.GPU Compute
→ If supported, faster wind updates (else, CPU fallback).
- Load an
.epw
file → WindSpeed & Direction auto-adjust to real weather.
- Click "Import Building Model" → Select
.obj
or.fbx
. - The model loads into the scene and acts as a wind obstacle.
- Unity Menu →
"Tools > Create Wind Simulation Sample Scene"
.
- Generated using Bezier curves for smooth airflow.
- Color-coded: Blue = Slow, Red = Fast.
- Wind bends around obstacles tagged
"Building"
. - Uses Physics OverlapSphere to detect structures.
- If GPU Compute is supported, it’s 10x faster.
- If GPU isn’t available, it automatically switches to CPU.
- ✅ You can modify & share this project freely.
- ⚠ If you distribute changes, they must remain open-source.
- ⚠ No Warranty: Use at your own risk.
Full license: GNU GPL v3