I’m making a sort of maze game, but at the loading screen, I want to make a sphere go thru a maze. But not a programmed path, so I can create random mazes without having to make a path for each.
I want to let it turn (example) right when there isn’t a wall right, there is a wall in front of it, and a wall left. Also when there aren’t walls right and left, for it to choose one. I’m trying hard but can’t do it, I’ve tried colliders and Rays. I don’t know which is best to use.
If you know how to do this, please help me. If you send me some code of how it should work, that would be awesome, I could learn a lot from that! And if you need any more information, ask below this!