Navigation
API > API/Plugins > API/Plugins/Water
References
| Module | Water |
| Header | /Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterBodyTypes.h |
| Include | #include "WaterBodyTypes.h" |
Syntax
struct FSolverSafeWaterBodyData
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< UPrimitiveComponent * > | LandscapeCollisionComponents | ||
| FVector | Location | ||
| float | MaxWaveHeight | ||
| float | OceanHeightOffset | ||
| float | TargetWaveMaskDepth | ||
| int32 | WaterBodyIndex | ||
| EWaterBodyType | WaterBodyType | ||
| FWaterSplineDataPhysics | WaterSpline | ||
| FWaterSplineMetadataPhysics | WaterSplineMetadata | ||
| TArray< FGerstnerWave > | WaveParams | ||
| float | WaveSpeedFactor | ||
| UWorld * | World |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSolverSafeWaterBodyData
(
UWaterBodyComponent* WaterBodyComponent |
Functions
| Type | Name | Description | |
|---|---|---|---|
| EWaterBodyQueryFlags | CheckAndAjustQueryFlags
(
EWaterBodyQueryFlags InQueryFlags |
||
| float | GetSimpleWaveHeightAtPosition
(
const FVector& InPosition, |
Computes the raw wave perturbation of the water height only (simple version : faster computation) | |
| float | GetSimpleWaveOffsetAtPosition
(
const FGerstnerWave& InParams, |
||
| float | GetWaterVelocityAtSplineInputKey
(
float InKey |
||
| FVector | GetWaterVelocityVectorAtSplineInputKey
(
float InKey |
||
| float | GetWaveAttenuationFactor
(
const FVector& InPosition, |
Computes the attenuation factor to apply to the raw wave perturbation. | |
| float | GetWaveHeightAtPosition
(
const FVector& InPosition, |
||
| bool | GetWaveInfoAtPosition
(
const FVector& InPosition, |
Fills wave-related information at the given world position and for this water depth. | |
| FVector | GetWaveOffsetAtPosition
(
const FGerstnerWave& InWaveParams, |
||
| FWaterBodyQueryResult | QueryWaterInfoClosestToWorldLocation
(
const FVector& InWorldLocation, |
||
| bool |