Still dont know

This commit is contained in:
Dynamitos committed 2026-09-03 20:08:45 +02:00
1 parent bedeb8f059
commit b1004d5c80
11 files changed
+334 -265

No files matched your search

+6
View File
@@ -1,8 +1,13 @@
#pragma once
#include "Containers/Array.h"
#include "Math/Vector.h"
namespace Seele {
namespace Component {
struct BoundaryPlane {
Vector normal; // inward normal (from solid toward fluid)
float d; // plane offset: dot(normal, pos) + d < 0 means solid
};
struct FluidGrid {
bool paused = true;
float dt = 0.1f;
@@ -11,6 +16,7 @@ struct FluidGrid {
UVector gridSize = {128, 128, 128};
Vector gravity = {0.0f, -9.81f, 0.0f};
bool enableGravity = true;
Array<BoundaryPlane> extraPlanes;
};
} // namespace Component
} // namespace Seele