other solution than simple path ?

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

question about get_simple_path.
I spawn enemies and have them get_simple_path their way on the bottom of the map.
I pre place buildings on the map (area2d), with colision2d.
But when i launch the game, the enemies ignore the building.
Both enemies and buildings are on the same physic layer.

Does simple path only works with tiles ?
If so, is there an other option that would ALSO consider deployed nodes on the map ?