Line Collision Detection for 2D Game

I am developing game related to line drawing in 2d.

At present I can able to draw line using Line Renderer. But I want to detect its collision also but right now I can’t able to find any way.

I also used Google for same thing but in that I don’t found any useful content related to this.

Hello @ siddharth3322 , I search a solution for my own problem. By chance I was directed to your problem. This tutorial will definitely help you. Visit How to make a LINE RIDER Replica in Unity (Livestream Tutorial) - YouTube . If this what you wanted, make this as the answer. It will help others.