• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Which side of the square the line meets

M

Midastouch

Guest
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)?
 

Nidoking

Member
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.
 
Top