You can see two points in this picture. Points are surrounded by collider which is set to trigger. Points can either be
Vector2, shouldn't make any difference.
I need to get the coords on gray line if mouse enters the trigger, at the exact point where mouse and gray line form 90 degree angle. Gray line is just an straight line between 2 points.
All the data:
- left point coords
- right point coords
- mouse coords
Is it possible with the data I have and how?