Each merged rectangle becomes a Polygon shape on the body. Tiles are laid
out with (0, 0) at the top-left of tile (0, 0), so the body's
position (defaults to origin) is the world-space location of that
top-left corner.
Defaults to BodyType.STATIC and merge: "greedy", matching the most
common gamedev use case (level collision geometry from a Tiled / LDtk map).
Build a single physics
Bodyfrom a 2D tile grid.Each merged rectangle becomes a
Polygonshape on the body. Tiles are laid out with(0, 0)at the top-left of tile(0, 0), so the body'sposition(defaults to origin) is the world-space location of that top-left corner.Defaults to
BodyType.STATICandmerge: "greedy", matching the most common gamedev use case (level collision geometry from a Tiled / LDtk map).