Hi all,
I'm hoping you guys can help me. I've created my own vertexArray classes via the tutorials available on the site to build a class which displays a two dimensional graph using Lines.
My issue is now I have another vertexArray of Quads, which is the sections of the graph. (like the squares on graph paper). I'm struggling to do collision detection on these two objects.
Is there a way that I can test if a line has passed through a quad shape?
e.g. I have a line at point 0,0 to 100,100. The quads are in sizes of 10,10. Which of these quads have the line passed through?
Many thanks for any and all help, it would be really helpful.