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
| Returns | Name | Description |
|---|---|---|
bool | IsUnderwater | |
bool | HasWaterAt | |
float | GetWaterHeightAt | |
float | GetWaterDepthAt | |
Vec3 | GetWaterFlowAt | |
Vec3 | GetNearestShorePoint | |
float | GetDistanceToShore | |
bool | SampleWaterAt | Everything at once, then read out. |
float | GetLastWaterHeight | |
float | GetLastWaterDepth | |
Vec3 | GetLastWaterFlow | |
Vec3 | GetLastWaterNormal | |
float | GetLastWaveHeight | |
int32_t | GetLastWaterBodyId | |
float | GetLastWaterBodyWeight | |
float | GetLastShoreDistance |
Function details
IsUnderwater
C++
bool IsUnderwater(const Vec3& position) constHasWaterAt
C++
bool HasWaterAt(const Vec3& position) constGetWaterHeightAt
C++
float GetWaterHeightAt(const Vec3& position) constGetWaterDepthAt
C++
float GetWaterDepthAt(const Vec3& position) constGetWaterFlowAt
C++
Vec3 GetWaterFlowAt(const Vec3& position) constGetNearestShorePoint
C++
Vec3 GetNearestShorePoint(const Vec3& position) constGetDistanceToShore
C++
float GetDistanceToShore(const Vec3& position) constSampleWaterAt
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() constGetLastWaterDepth
C++
float GetLastWaterDepth() constGetLastWaterFlow
C++
Vec3 GetLastWaterFlow() constGetLastWaterNormal
C++
Vec3 GetLastWaterNormal() constGetLastWaveHeight
C++
float GetLastWaveHeight() constGetLastWaterBodyId
C++
int32_t GetLastWaterBodyId() constGetLastWaterBodyWeight
C++
float GetLastWaterBodyWeight() constGetLastShoreDistance
C++
float GetLastShoreDistance() constGenerated from Game/MWaterStatics.h via game.json · Nov 5, 2026Version 1.0.0