Note: I put a thread up with the same name last week but realized that my problem isn’t actually solved because I need a collider that wraps around the graphic “content” rather than the square tiles themselves.
I have been working on my own engine for building 2D levels. You pass it a List of tiles and a tileset and it builds meshes at run time with triangles supporting the tiles from the tileset. The tiles would naturally be square, but if I want a slope or an irregular shaped tile I would need the collider to repressent that also.
I am wondering if there is a way to wrap a 2D collider around the mesh texture (rather than the triangles themselves). I have searched high and low but maybe I am not searching for the correct thing? Any help would be greatly appreciated.
A final point, if there is another way to achieve this kind of collision I would be happy to hear it! ![]()