Module 3 Devlog: Terrain and Probuilder


Devlog for Self Study 3: Terrain and Probuilder

Unity Terrain

Terrain was created in Unity using the terrain tools package downloaded from the Unity Package Manager. These tools include some brushes for raising/ lowering the terrain, adding trees and other prefabs, and painting the terrain with textures, among other things.


Terrain made in Unity with the terrain tools

The lighthouse created previously and barrels were added and the tourist was moved to the new terrain.

Tourist inspecting the lighthouse and barrels

Trees were also added with the terrain tools' tree brush around the lighthouse area.

 

Trees and stuff

Probuilder

The Probuilder package was downloaded from the Unity Package Manager, and was used to create a maze like public toilet for the lighthouse area, it contains no toilets, only walls. These walls were created using the poly-shape creation tool from Probuilder, and extruding them upwards to create walls in the shapes draw out on the floor with the tool.

Reflection

While creating this terrain area I ran into a problem with the tree brush, it was creating tiny trees that could not be seen. I found the problem was that the objects being imported from Blender were automatically being scaled from Blender measurements to Unity units and were 100 times smaller than they were supposed to be, and were scaled 100 times when dragged into the scene. The solution to this was to turn off the auto scaling stuff.

Tutorial 3: Navigation

The public toilet created earlier was given a Nav Mesh using Unitys navigation panel, and the tourists were given a Nav Mesh Agent component to allow them to navigate using the Nav Mesh, a script was also created that used raycasting to set the target position of the Nav Mesh Agents to wherever the mouse was clicked in the scene.

Tourists trying to find the toilet (there isn't one).

The tourist was then given back a third person controller, and a script was given to some new Nav Mesh Agents that made their target the player character.

Tourist pursued by the locals, as he has insulted them greatly.

Reflection

When using the Nav Mesh, stairs need to have a ramp like collider, rather than colliders in the shape of stairs, as the Nav Mesh does not like this and it will not work  properly.

Leave a comment

Log in with itch.io to leave a comment.