Quote:
how did you handle scaling the mini level(the one you import into box2d) and the one with all the backgrounds and stuff?
What backgrounds are you talking about? The SVG importer that I included does not make any attempt to handle graphics or scaling, and assumes that the scale in Inkscape is the same as in Box2D. However, if you'd like to change that, you could probably change what is currently line 121 of TestEdges.as to something more like:
Code:
chainDef.vertices.push(new b2Vec2(Number(args[i]) * METERS_PER_PIXEL + OFFSET_X, Number(args[i+1]) * METERS_PER_PIXEL + OFFSET_Y));
Figuring out the scale and offset values is up to you, but as far as I know it shouldn't present any problems.
