Navigation
API > API/Plugins > API/Plugins/Buoyancy > API/Plugins/Buoyancy/BuoyancyAlgorithms__ComputeSubme-
References
| Module | Buoyancy |
| Header | /Engine/Plugins/Experimental/Buoyancy/Source/Runtime/Public/BuoyancyAlgorithms.h |
| Include | #include "BuoyancyAlgorithms.h" |
namespace BuoyancyAlgorithms
{
bool BuoyancyAlgorithms::ComputeSubmergedVolume
(
FBuoyancyParticleData & ParticleData,
const Chaos::FPBDRigidsEvolutionGBF & Evolution,
const Chaos::FGeometryParticleHandle * ParticleA,
const Chaos::FGeometryParticleHandle * ParticleB,
int32 NumSubdivisions,
float MinVolume,
float & SubmergedVol,
Chaos::FVec3 & SubmergedCoM,
float & TotalVol
)
}
Remarks
Compute an approximate volume and center of mass of particle B submerged in particle A, adjusting for the volume of the object based on the material density and mass of the object