Sweep Plane until Lower Section has a certain volume

Hi Daniel

I’ve been studying your excellent floatation simulation.

One thing I’ve noticed it that the center of mass is a fixed point of the object and the beginning and doesn’t moved with the object as the solver iterates. Am I correct? If so, how would you get the center of mass to stay relative to the object as it moves?

Thanks in advance,

Ben