buoyancy bounce, with multi shape bodies.

with the buoyancy feature...
multi shape bodies seem to go into a continuous fluctuation as shapes within a body enter and exit the water.
single shape bodies act as expected, multi-shape bodies tend to react strongly when extra shapes begin to touch.

i can build a test-bed if needed. perhaps theres a way to adjust the functionality to treat multi shape bodies as a united shape?
I just tried a multi-fixture shape in the WCK buoyancy demo and it worked fine (2 circles). What does your compound body/shape look like? I imagine if there is a lot of overlap it will screw up the buoyancy calculation.
one of the most noticeable is a castle top, 4 shapes, 1 for each prong, and 1 for the base, no overlap.

EXAMPLE
http://www.sketchbookgames.com/BouyancySample.swf
-using only wck classes.
-castle shape is fine if prongs are submerged.
-other compound shapes react okay.

i have had this problem in the past on a rubber ducky shaped body. if its upside down the head will bounce in and out of the water, endlessly. that sample is not ready to show yet, but i changed a lot of settings to try to reduce the effect, (there is some overlap in that body) but i don't think it was a problem in 2.01...(using BorisTheBrave's buoyancy controller from the grab pack)
*this example is 2.01, http://www.sketchbookgames.com/Portfolio/WaterPortfolio2010.swf,
*this is the start of the 2.1 wck version http://www.sketchbookgames.com/Portfolio/water.swf
--in the 2.1 version the duck should be even more buoyant so he shoots out of the water (when dragged under) like in the 2.01 version, but that seems to make the bounce even stronger.
looking at it again, its not clear that it was not a problem in the 2.01 version. the circumstances might be just right to avoid the problem (i added some back weight do the ducky, so he would sit straight most of the time, and he is made of more complex shapes than the square and circle used in the 2.1 version, although the more complex i made it the worse it was in that version)
I'm new to Box2D, but looking through the code for the buoyancy controller, it looks like it only applies to individual shapes that are at least partially submerged in the buoyancy controller area, not the whole compound shape.

This results in the bouncing that you're seeing with compound shapes, where the buoyancy force is rapidly changing as individual shapes enter and leave the buoyancy area. In the buoyancy example SWF you posted, you'll note that the castle shape floats in the expected fashion when the three prongs are all submerged, and only bounces when the prongs are near the edge of the buoyancy area. If you play around with the other compound shapes in the example, you'll notice that while they behave in a reasonable fashion, they're a lot more dynamic than the single-shape objects, and movements are more violent and take a while to settle down.

I don't know if it's possible to change the buoyancy controller to look at compound rather than single shapes, but that'd be a possible solution.

Original thread: https://box2d.org/forum/viewtopic.php?t=5051