I have an object that has an Area2D. I also have a tilemap that has patterns of grass, sand etc. I created different collision layer for each pattern (grass or sand). But both patterns can be in a single tile also.
Is it possible to get which collision layer of TileMap is ‘collided’ with object’s Area2D?
I think area_entered and area_exited signals of the Area2D object don’t work with how TileMap physical layer is set. So I can only use body_entered and body_exited. But I can’t get the information of which collision layer of the tile_map is collided with Area2D of the object.