How to create physics line to draw in Game

How to Draw physics line in game. please help.

Please find the below image for reference.

image

Hi nagarajunag48 and welcome!!!

I have no experience with this but have seen a few similar topics mention modifying the physics objects shape by using polygons. Here’s some more info here:

https://wiki.gdevelop.io/gdevelop5/behaviors/physics2#body_shape

And also a thread that mentions a workaround for the limitations to the polygon shapes: