In the Physics2 settings, change the object’s shape type to “Edge”:
and then modify the object’s physics collision shape.