Line renderer can't fall when i use garavity(rigidby)

i create a line class and im use line renderer and edge collider 2D and rigidbody2D , good when drawing line with mouse the line still fixe in screeen wan’t fall down .
i tried all i know in unity but the problem it can’t resolve .
and thanks for reading my problem + support my ugly english langauge :).

Create two objects with rigidbody and isKinematic = true
When you appear GetMouseDown, set in line renderer first position to first object, and when you appear GetMouseUp, set in line renderer second position to second object, and set for both object isKinematic to false