Now i'm working on implementing buoyancy in my engine and having an issue with determining underwater volume for body collision shapes. I need to find volume of primitives such as sphere, capsule, cone and box clipped by a plane. I can't derive formulas myself so i'm looking for ready-made ones if they're even exsist. I tried google it first, but it doesn't provided me with satisfying results.
Thanks for help.