# Box2dMapObjectParser isometric map - bodies have wrong position and size

I'm using Box2dMapObjectParser to load Tiled objects layer onto my IsometricTiledMapRenderer'ed TiledMap. It works OK with a UnitScale of 1 but the position is wrong and some shapes have weird rotation and size.

Map in Tiled:

Map in game:

I've found another similar question but the answer is unfortunately far from being clear, at least to me.

Relevant code:

mParser.load(mWorld, mMap);
mRenderer = new IsometricTiledMapRenderer(mMap, mParser.getUnitScale());


Notice the 'Ellipse' is not drawn at all, the Rectangle is way off and Polygons/Polylines are just not positioned right.

Did anyone experience the same issue and/or have any idea how to fix this?

• Maybe you forgot to set the view before rendering: mRenderer.setView((OrthographicCamera) viewport.getCamera()); Here's an example for isometric maps: bitbucket.org/dermetfan/somelibgdxtests/src/… And the map: bitbucket.org/dermetfan/somelibgdxtests/src/… Also remember the Box2DMapObjectParser does not support rotated objects. – dermetfan May 18 '16 at 16:51
• @dermetfan thanks for taking the time to check this out and reply. I didn't forget the renderer.setView but I'll look into your example and hopefully it'll hold the answer. – Lior Iluz Jun 4 '16 at 18:05
• @dermetfan any plans for fixing the issue? – george Jul 9 '16 at 14:23
• @george not currently... bitbucket.org/dermetfan/libgdx-utils/issues/16/… – dermetfan Jul 13 '16 at 15:06