Point-Line Collision v1.0 I needed this basic point-line collision script for softbody collisions and for circle collisions. It calculates the position of all important points and the lengths of lines. Move your mouse to move the point. Press space to move the line to a random position. The green line is the line we collide with. The purple and blue lines are intermediate steps. The red line means there is a collision at its endpoint. The yellow line means there is no collision. Update Information v1.0 Collision 1.0 - No undefined slope problems.