Simple and efficient ragdoll bouyancy system
Added 2024-12-27 06:32:57 +0000 UTCPreviously whenever a ragdoll touched a body of water it would activate some floating parameters on the ragdoll, there wasn't a way to dynamically check if the ragdoll was partially outside of the water volume.
This lead to moments were the ragdoll would act like it was inside a water volume even if only partially submerged.
This new system addresses this by driving the ragdoll with subtle forces depending on it's distance to the surface.
The ragdoll will start floating towards the surface and slowly stop when reaching it without exeding the volume's bounds.
This allows for a sort of simplistic bouyancy behavior for ragdolls or any skeletal mesh that runs a physics simulation while inside the water volume.