Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

Box2dMapObjectParser isometric map – bodies have wrong rotation and size

$
0
0

I’m using Box2dMapObjectParser to load Tiled objects layer onto my IsometricTiledMapRenderer‘ed TiledMap.
It works OK with a UnitScale of 1. The position seems to be fine but the Body has an unexplained rotation and wrong size.

Map in Tiled:
enter image description here

Map in game:
enter image description here

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());

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


Viewing all articles
Browse latest Browse all 434

Trending Articles