Navigation
API > API/Plugins > API/Plugins/Buoyancy > API/Plugins/Buoyancy/FBuoyancyParticleData
Syntax
TSparseArray < TBitArray <> > SubmergedShapes
Remarks
This is a sparse array of bit arrays representing which shapes in an object have already been accounted for when submerging an object. For example, if a massive BVH object has two leaf node shapes submerged in different pools of water and we've already detected that leaf A is submerged, we don't need to test A again. This helps to avoid double counting submerged shapes.
Just like Submersions, we have this as a member variable only to keep the memory hot - the array is reset, repopulated and traversed, every frame, so we want to minimize allocations.