Godot Version
4.7
Question
I have a class based off of tile map layer. It uses a tileset that has a physics layer on every tile. I use this to detect if any mobs or objects enter the tile map layer. For the objects, I use area2d’s on_body_entered signal to check if they collide with the tile map layer
I also want to detect if two tile map layers collide. From what I understand, tile map layers don’t have a behavior similar to area2d’s on_body_entered, so I need to attach an area2D to the tile map layer, and then add the tile map layers collision shape. From what I’ve read, I thought I would have to manually build the collision shape for the tile map layer. However, after looking at the debug shapes, it looks like there is already a computed polygon, and it gets updated whenever the tilemap changes.
Is there anyway I can access this computed polygon and attach it to a area2d, so I can check collision? Or is there a simpler way to check if tile map layers collide with each other.
