Gridmap set_item collision with objects that are not part of the gridmap

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gladion136

Hey, I want to add items to gridmap cells ingame.
The problem is that an object can be inside the cell.

What is the best way to detect if an object (area, body or mesh which is not part of the gridmap) is inside the cell to prevent the item from being added?