How can I check that Player (KinematicBody2D) collide with wood/stone (StaticBody2D) and dont move?

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

I need to check that Player touch some StaticBody2D Object and dont moving.
If I use a move_and_collide() function, she detect collide only if I moving into object

:bust_in_silhouette: Reply From: yogurtik

I find solution, I add into my object node Area2D, in Area2D I add CollisionShape2D and connect signal “body_entered”