I'm making a 3d map generation. I use a room prefab to generate the map. the room is 10x10x10 in scale, it has 4 exits, all of them are blocked by doors. when i finish generating the map, an Agent (let's call this object like this) roams around the map, walking in random positions, deleting any doors it touches, so that it creates a cool path around the map. For optimisation reasons I want to delete all the rooms the Agent wasn't in before, which basically means that these rooms were left untouched so they still have 4 doors which results in them being useless, because player won't be able to get inside them anyways. But the problem is that when i set the agen't startPos to 50x0x50 (50x 0y 50z), there is an anomaly which causes some rooms to don't have any rooms next to them which lets the player leave the map. It doesn't occur when i set the agent's startPos to 0x0x0. Here's the agent code: https://hatebin.com/jvgwffmnjr
And the script i use to generate the map before launching the agent:
https://hatebin.com/snfzvuipcy
#3D Random Map Generation Problem
1 messages · Page 1 of 1 (latest)
You need to debug http://unity.huh.how/debugging to understand what's happening. Then you can figure out how to solve the problem.
ok