Navigation
API > API/Plugins > API/Plugins/Water > API/Plugins/Water/UWaterBodyComponent
References
| Module | Water |
| Header | /Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterBodyComponent.h |
| Include | #include "WaterBodyComponent.h" |
| Source | /Engine/Plugins/Experimental/Water/Source/Runtime/Private/WaterBodyComponent.cpp |
virtual FWaterBodyQueryResult QueryWaterInfoClosestToWorldLocation
(
const FVector & InWorldLocation,
EWaterBodyQueryFlags InQueryFlags,
const TOptional < float > & InSplineInputKey
) const
Remarks
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.