Triangle collision 2D - liballeg/allegro_wiki GitHub Wiki
Triangle overlap check
To test if two triangles overlap, we can test the vertices of each triangle to see if they are within the boundaries of the other triangle. This results in 6 point versus triangle checks, which we have covered how to do here : point versus triangle and here : point versus line . If any vertex of any triangle is within the other triangle, they must overlap.