I found some odd behavior while using an Area2D to mark tiles to toggle them on/off. On the first toggle (starting with tiles on), get_overlapping_bodies()
detects the TileMap, but after removing/adding the tiles back in it doesn't. I set up a test project and found the same thing happens when removing/adding a RigidBody2D in static mode, but in kinematic mode the RigidBody2D gets detected. I also found that after moving the Area2D back and forth 1px, it is able to detect the TileMap and static RigidBody2D.
Moving the Area2D is fine for my use case but I'm just curious if this is intended and/or why this works differently for kinematic vs. static or TileMap?
In the test project, "ui_up"
attempts to toggle the tile, "ui_down"
attempts to toggle the RigidBody2D, and "ui_right"
moves the Area2D back and forth.
