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

TypeNameDescription
boolenabledDefault true.
int32_tcellsXDefault 48.
int32_tcellsYDefault 32.
int32_tcellsZDefault 48.
floatcellSizeDefault 0.1f.
int32_tparticlesPerAxisDefault 2.
Vec3fillMinDefault Vec3(0.05f, 0.05f, 0.05f).
Vec3fillMaxDefault Vec3(0.4f, 0.7f, 0.95f).
floatflipRatio1 = pure FLIP (lively, noisy), 0 = pure PIC (smooth, viscous). Default 0.95f.
floatgravityDefault -9.81f.
int32_tpressureSweepsDefault 40.
booluseSceneCollidersDefault true.
floatsurfaceIsoDefault 2.0f.
Vec3colorDefault Vec3(0.12f, 0.35f, 0.6f).
int32_tseedDefault 1.
boolsimulateInEditorDefault false.
uint64_tstepsDefault 0.
uint32_tparticlesDefault 0.
uint32_tsurfaceTrianglesDefault 0.
Generated from GpuEcs/FluidVolumeComponent.h via gpuecs.json · Oct 31, 2026Version 1.0.0