I downloaded a maze sprite for expiremental purpose to use in my game and I’m trying to add colliders to the wall. But since the maze is complex, it is quite a lot of work to add a Box collider 2D to each wall so I tried using the Polygon collider 2D and it was some sort of inaccurate mesh looking collider. Is there any better way to add colliders to a maze or is it possible to do it programmatically adding colliders by somehow detecting the structure of the maze?
Here is something similar to the maze I’m using: https://www.google.com/imgres?imgurl=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2F2%2F28%2FPrim_Maze.svg%2F200px-Prim_Maze.svg.png&imgrefurl=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMaze_generation_algorithm&tbnid=ntUFTICUt_at-M&vet=1&docid=1x_Vaxn0DiMUoM&w=200&h=200&hl=en-US&source=sh%2Fx%2Fim