little 2d demo for 3d collisions with slopes Works by comparing every line segment and seeing if it intersects. (In theory at least) it can do this on concave and convex shapes. A little on the nose, but it finally works :D On small side effect of this algorithm is that it can’t detect if polygon (a) inside polygon (b).