class

MWaterStatics

The water queries as Visual Script nodes and gameplay verbs. FWaterQuery is the C++ surface and stays authoritative; this is the reflected face of it, so a graph or an audio trigger can ask where the water is without a C++ module.

Module
Game
Header
#include "Game/MWaterStatics.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

The node catalogue is built by walking MClassRegistry, so every MFUNCTION here becomes a node on its own — nothing is hand-registered.

Public functions

Function details

IsUnderwater

C++
bool IsUnderwater(const Vec3& position) const

HasWaterAt

C++
bool HasWaterAt(const Vec3& position) const

GetWaterHeightAt

C++
float GetWaterHeightAt(const Vec3& position) const

GetWaterDepthAt

C++
float GetWaterDepthAt(const Vec3& position) const

GetWaterFlowAt

C++
Vec3 GetWaterFlowAt(const Vec3& position) const

GetNearestShorePoint

C++
Vec3 GetNearestShorePoint(const Vec3& position) const

GetDistanceToShore

C++
float GetDistanceToShore(const Vec3& position) const

SampleWaterAt

C++
bool SampleWaterAt(const Vec3& position)

Everything at once, then read out. A footstep or an ambience wants four of the answers above at the same point, and each of those calls walks every body in the world and inverts a Gerstner surface — asking once and reading the fields is the difference between one walk and four.

GetLastWaterHeight

C++
float GetLastWaterHeight() const

GetLastWaterDepth

C++
float GetLastWaterDepth() const

GetLastWaterFlow

C++
Vec3 GetLastWaterFlow() const

GetLastWaterNormal

C++
Vec3 GetLastWaterNormal() const

GetLastWaveHeight

C++
float GetLastWaveHeight() const

GetLastWaterBodyId

C++
int32_t GetLastWaterBodyId() const

GetLastWaterBodyWeight

C++
float GetLastWaterBodyWeight() const

GetLastShoreDistance

C++
float GetLastShoreDistance() const
Generated from Game/MWaterStatics.h via game.json · Nov 5, 2026Version 1.0.0