how do I prevent 'Area2D' from passing through other objects?

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

Guys, how to make sure that ‘Area2D’ does not pass through other objects, for example:
so the enemy can’t see you hiding behind a wall.
I’m sorry if I asked you a question incorrectly.