Navigation
API > API/Plugins > API/Plugins/Buoyancy > API/Plugins/Buoyancy/FBuoyancySubsystemSimCallback
References
| Module | Buoyancy |
| Header | /Engine/Plugins/Experimental/Buoyancy/Source/Runtime/Public/BuoyancySubsystem.h |
| Include | #include "BuoyancySubsystem.h" |
Syntax
static int32 MaxNumBuoyancyInteractions = 2;
Remarks
Sparse array of arrays of buoyancy interactions - the outer array has one entry per particle, the inner array has an entry per water body that it interacts with. Each will be a very small array, sorted by Z.
We use inline allocator to avoid more heap allocations, and to express the assumption that a single particle is unlikely to exceed interactions with a certain number of waterbodies at a time.