• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

GMS 2.3+ Which side of the square the line meets

I have a little question, i asked myself
I have an instance a square.
And i have a second oject, this object create a line from his center to infinite.
There is a solution to know which side of my instance square is touched by the line (if the line touch the square)?


Presumably, you would use point_direction to get the angle and compare it to the angles of the corners of the square, if I understand the question correctly.