Line Circle collision Mostly drawn from this website: https://www.jeffreythompson.org/collision-detection/line-circle.php see inside to change the line position. Keep in mind, it does matter which point is point 1 and point 2 of the line, since that will determine the surface normal.