How would you make a half filled water balloon?

you would have to code the center of gravity switch to be dynamic. once you pass the tipping point you have liquid transfer. liquid transfer changes the center of gravity.