Navigation
API > API/Plugins > API/Plugins/Buoyancy > API/Plugins/Buoyancy/UBuoyancySubsystem
Description
Query a water body given a FBuoyancyWaterSplineData object representing a water body note this is designed to only work on the physics thread, but the FBuoyancyWaterSplineData data is generated once and then only written to if water bodies change (uncommon). In the future, we should consider restructuring usage such that there aren't potential threading issues, but it is problematic since Chaos and Cloth are evaluated on separate threads.
| Name | QueryWaterBody |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Buoyancy/Source/Runtime/Public/BuoyancySubsystem.h |
| Include Path | #include "BuoyancySubsystem.h" |
| Source | /Engine/Plugins/Experimental/Buoyancy/Source/Runtime/Private/BuoyancySubsystem.cpp |
bool QueryWaterBody
(
const FVector & InputPosition,
const TSharedPtr < FBuoyancyWaterSplineData > WaterData,
FVector & WaterVel,
FVector & WaterPlaneN,
FVector & WaterPlanePos
)