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

How do I find the shape of Tiled's circles or ellipses in libGDX?

$
0
0

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


Viewing all articles
Browse latest Browse all 434

Trending Articles