Navigation
API > API/Plugins > API/Plugins/Water > API/Plugins/Water/UWaterBodyComponent
Description
Returns the requested water info closest to this world location
- InWorldLocation: world-space location closest to which the function returns the water info
- InQueryFlags: flags to indicate which info is to be computed
- InSplineInputKey: (optional) location on the spline, in case it has already been computed.
| Name | TryQueryWaterInfoClosestToWorldLocation |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterBodyComponent.h |
| Include Path | #include "WaterBodyComponent.h" |
| Source | /Engine/Plugins/Experimental/Water/Source/Runtime/Private/WaterBodyComponent.cpp |
virtual TValueOrError < FWaterBodyQueryResult , EWaterBodyQueryError > TryQueryWaterInfoClosestToWorldLocation
(
const FVector & InWorldLocation,
EWaterBodyQueryFlags InQueryFlags,
const TOptional < float > & InSplineInputKey
) const