Collision Rigid Body 2d and Collision shape @2d

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

I do air hockey and ran into a problem. When I pinch a puck in two walls with a stick, the puck goes through the wall. I wanted to use a kinematic body instead of a rigid body, but then I can’t detect a collision using move_and_collide(). Is there any way to use a rigid body and fix this problem?
image: https://drive.google.com/file/d/1D0Sv5s-nr6AuH8D2w8gxU3dvrXl9CMrz/view?usp=sharing