Terrain Categories/Shapes + Staging Area + Optimizations

Terrain Categories?

One of the ambitious goals I set out to accomplish with this tool was to have plenty of terrain shapes to choose from. Downside, there were too many options and it made it difficult to see (I also don't like drop-down boxes very much.)

So I set out on a journey to use Segmented Controls, but have them dynamically populated on the fly based on what category you were in. The results?
Now, this was a huge task, but it ended up shortening the lines of code by roughly one hundred lines. This effort has also unified the way the terrain shapes are generated, which may be a limiting factor in the future, but for now it works wonders!

Staging Area

There was a request to have a flat area in the terrain that was being generated by the tool. Seemed simple enough, so I knocked it out. It's pretty self explanatory... It's a staging area, it can be resized, and placed anywhere in the map, with any height. The staging area will automatically generate a ramp on every side of the staging area that conforms to the max angle for the default character controller.

This makes it so you can place, prefabs, agents, and many more objects in the scene without having to worry about minor terrain adjustments affecting the placement of these objects.

Comments