I created a level in the 'Tiled Map Editor' and loaded it into my libGDX game. I can easily transform almost all objects into Box2D objects (although this problem is not Box2D specific), but I have trouble with ellipses.
Tiled seems to only create ellipse objects, without a special case for circles. I'd be happy with just circles if they existed in Tiled.
However, even the EllipseMapObject I load in libGDX only has an x,y
position. I don't see any information about area or vertices. Did I miss something? How can I create circle or ellipse objects in Tiled and load them into libGDX with right dimensions?
Tiled version 0.10.1, libGDX version 1.4.1
.tmx
) includeswidth
andheight
fields for ellipses since v0.9.0, which carry over to within yourEllipseMapObject
. Are you sure you're looking in the right place, callingEllipseMapObject.getEllipse()
and checking width and height on that? \$\endgroup\$