LibGDX + Tiled, Slants and curves...

Hi there!

I’m curious on how slanted collision could work using libgdx and tiled. For example, stairs…
Example:

Thanks!

I think that you will just have to use special tiles with custom collision. You can try using a line-intersection to represent a rough estimate of the stairs.

If you’re checking collisions on a tile basis, you could give the stairs tiles a property like “CollisionHeight” and make your character collide with the specified height rather than the top of the tile.

I’ve been able to implement slants, slopes and curves using Box2D, although at this point you may not want to use Box2D if you’re not already using it.