
Region Tool
The region tool is a system that allows us to define a specific area of our game map. This can be used to lock down regions where buildings can be constructed, areas where bridges can go, safe zones, AI information, etc.

In order to do this, we needed a way to detect if our building was within certain buildable areas, i.e. reasonably flat ground. The designers will build the world as the wish, and then use the region tool to mark safe areas.
Enter the new problem. Unity does not have out of the box support for this. You can't even edit individual vertices in unity, you can only stretch, rotate and reposition entire models. To do this, I needed to write code that would generate editable points on each vertice to allow us to reshape them in the game. Here is a video showing that.
No comments:
Post a Comment