Trying to add fluid simulation

This commit is contained in:
Dynamitos committed 2026-04-12 20:49:02 +02:00
1 parent 056589a6f9
commit ac317a3829
65 files changed
+2708 -371

No files matched your search

+2
View File
@@ -6,6 +6,7 @@ target_sources(Engine
Collider.cpp
Component.h
DirectionalLight.h
FluidGrid.h
KeyboardInput.h
Mesh.h
MeshCollider.h
@@ -29,6 +30,7 @@ target_sources(Engine
Collider.h
Component.h
DirectionalLight.h
FluidGrid.h
KeyboardInput.h
MeshCollider.h
Mesh.h
+13
View File
@@ -0,0 +1,13 @@
#pragma once
#include "Math/Vector.h"
namespace Seele {
namespace Component {
struct FluidGrid {
float cellSize = 1.0f;
float viscosity = 0.1f;
float diffusion = 0.01f;
UVector gridSize = {128, 128, 128};
};
} // namespace Component
} // namespace Seele