Navigation
API > API/Plugins > API/Plugins/Water
References
| Module | Water |
| Header | /Engine/Plugins/Experimental/Water/Source/Runtime/Public/BakedShallowWaterSimulationComponent.h |
| Include | #include "BakedShallowWaterSimulationComponent.h" |
Syntax
USTRUCT (BlueprintType )
struct FShallowWaterSimulationGrid
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FVector4 > | ArrayValues | Raw grid data | |
| TObjectPtr< UTexture2D > | BakedTexture | Texture for baked water sim data | |
| FVector2D | Dx | World space grid cell size | |
| FIntVector2 | NumCells | Number of cells | |
| FVector | Position | World space center | |
| FVector2D | Size | World space size |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FShallowWaterSimulationGrid
(
const TArray< FVector4 >& InArrayValues, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector | ComputeShallowWaterSimulationNormalAtPosition
(
const FVector& QueryPos |
Compute normal at a world position | |
| FVector | FloatIndexToWorld
(
const FVector2D& Index |
Convert a float index to world space | |
| FVector | IndexToWorld
(
const FIntVector2& Index |
Convert an integer index to world space | |
| bool | IsValid () |
Check for a valid sim domain | |
| void | QueryShallowWaterSimulationAtIndex
(
const FIntVector2& QueryIndex, |
Query sim data at an index | |
| void | QueryShallowWaterSimulationAtPosition
(
const FVector& QueryPos, |
Query shallow water grid cell values at a world position | |
| void | SampleShallowWaterSimulationAtIndex
(
const FVector2D& QueryFloatIndex, |
Linear interpolate sim data at an index | |
| void | SampleShallowWaterSimulationAtPosition
(
const FVector& QueryPos, |
Linear interpolate for shallow water grid cell values at a world position | |
| FVector2D | WorldToFloatIndex
(
const FVector& WorldPos |
Convert world space to float index | |
| FIntVector2 | WorldToIndex
(
const FVector& WorldPos |
Convert world space to integer index |