struct
FluidVolumeComponent
GPU FLIP water in a box: the grid sits on the entity (floor at its height, centred on it horizontally), the water starts as the Fill box (fractions of the domain), and box and sphere colliders inside the domain are walls it flows around. The surface is drawn as a mesh contoured from the particles.
- Module
- GpuEcs
- Header
#include "GpuEcs/FluidVolumeComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
int32_t | cellsX | Default 48. |
int32_t | cellsY | Default 32. |
int32_t | cellsZ | Default 48. |
float | cellSize | Default 0.1f. |
int32_t | particlesPerAxis | Default 2. |
Vec3 | fillMin | Default Vec3(0.05f, 0.05f, 0.05f). |
Vec3 | fillMax | Default Vec3(0.4f, 0.7f, 0.95f). |
float | flipRatio | 1 = pure FLIP (lively, noisy), 0 = pure PIC (smooth, viscous). Default 0.95f. |
float | gravity | Default -9.81f. |
int32_t | pressureSweeps | Default 40. |
bool | useSceneColliders | Default true. |
float | surfaceIso | Default 2.0f. |
Vec3 | color | Default Vec3(0.12f, 0.35f, 0.6f). |
int32_t | seed | Default 1. |
bool | simulateInEditor | Default false. |
uint64_t | steps | Default 0. |
uint32_t | particles | Default 0. |
uint32_t | surfaceTriangles | Default 0. |
Generated from GpuEcs/FluidVolumeComponent.h via gpuecs.json · Oct 31, 2026Version 1.0.0