Collision object in tilemap

If I have a map created with a tilemap, The collision object is in all the map or is only in the border of the map?

When you create a tilemap you do it based on a tilesource. When you create your tilesource you can define several different collision groups and assign the tiles in the tilesource to the different collision groups. When you add your tilemap component to a game object and also add a collision object set to the shape of the tilemap you will get collision shapes mapping to the layout of your tilemap and how you assigned the different collision groups. You can also go to game.project and check the physics debug checkbox to see exactly how the different collision shapes are positioned.

2 Likes