Part of the annoyingness of trying to make double-sided edges is the continuous physics Time-Of-Impact calculations, which need to find the distance between shapes, plus a little extra distance. Polygons handle this by creating an extra set of vertices which are shrunken a little bit towards the center, called "core vertices", and it uses these instead of the normal vertices when calculating distance. I did the same thing with EdgeShapes, meaning there's a hidden "core edge" which is offset slightly on the "wrong" side of the edge. If you want EdgeShapes to be double sided, then this probably won't work, and instead you should just use the normal vertices of EdgeShapes and then add a small distance onto the result of those calculations before returning it. This technique MIGHT actually be preferable anyway, though I'm not sure yet.
But perhaps more problematic is dealing with convex corners of EdgeShapes, like a cliff at the end of a platform. When my character walks over a cliff, I don't want my toes to bump into the vertical wall below the cliff before I actually fall. But Box2D never resolves overlaps completely, so my feet are slightly embedded in the ground already and it's likely that I'll stub my toe on the inner side of the vertical edge instead of gliding over the cliff and then falling on the other side.
There's probably a way to solve these problems, but the details will likely be tricky and require lots of testing. Perhaps it would be okay to increase the actual thickness of EdgeShapes slightly to avoid the above problems, or perhaps we could use information about the angle between edges at corners to avoid the problems. I welcome contributions.
If you want, you could just create a pair of EdgeShapes for every edge in your map, but offset slightly from each other so that they simulate thickness. This solution would not require any modification to Box2D.
But perhaps more problematic is dealing with convex corners of EdgeShapes, like a cliff at the end of a platform. When my character walks over a cliff, I don't want my toes to bump into the vertical wall below the cliff before I actually fall. But Box2D never resolves overlaps completely, so my feet are slightly embedded in the ground already and it's likely that I'll stub my toe on the inner side of the vertical edge instead of gliding over the cliff and then falling on the other side.
There's probably a way to solve these problems, but the details will likely be tricky and require lots of testing. Perhaps it would be okay to increase the actual thickness of EdgeShapes slightly to avoid the above problems, or perhaps we could use information about the angle between edges at corners to avoid the problems. I welcome contributions.
If you want, you could just create a pair of EdgeShapes for every edge in your map, but offset slightly from each other so that they simulate thickness. This solution would not require any modification to Box2D.