Box2d Buoyancy

BlitzMax Modules Forums/Brucey's Modules/Box2d Buoyancy

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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