Why not just test these in advance and assign a look-up table to each one? It’s a simple solution and could be overcome in a short time (an hour) or so. And it would provide you with the level of detail that matches each object… perhaps some can use 2, others use 5, others use 10, and you can optimize your body shapes by choosing the number that best suits each.
[lua]
local coarsenessLookup = {
forestFloor1 = 2,
forestFloor2 = 3,
forestFloor3 = 2,
}
–later
local imageName = “forestFloor1”
local imageOutline = graphics.newOutline( coarsenessLookup[imageName], imageName…".png" )
local image = display.newImage( imageName…".png" )
physics.addBody( image, { outline=imageOutline, bounce=0.5, friction=0.1 } )
[/lua]