Box2d Buoyancy

BlitzMax Forums/Brucey's Modules/Box2d Buoyancy

Armitage 1982(Posted 2008) [#1]
Hello

I'm trying to adapt a technique used in Chipmunk to recreate roughly the buoyancy effect.
This method is well explained by Slembcke here : http://www.slembcke.net/forums/viewtopic.php?f=1&t=57&p=263&hilit=buoyancy#p264

Unfortunately I don't know any method to decompose polygon or circle shape into "atoms grid".

My bet would be using the polygon oriented bounding boxes (OBBs) as a rough envelop to easily achieve this.

But I can't see any way to access OBBs in Box2d with exception for the b2DebugDraw type (and I'm not sure Brucey as implement this yet...).

Any idea to decompose those shapes this way ?

Thanks