- Home /
Making NavMesh areas?
Hi, I have a terrain , I need all surface of this terrain is walkckable by the agents, but I need to set some area to the terrais to configure they costs. To make a new area, its necesary add new meshes or colliders and bake the navigation with each object in different area layer?
This is the terrain I need blue areas on layer 1 and purple area on layer 2
Red areas are NavMeshObstacles.
If I make the radius of the agent on 0.5 for example, I got a similar navigation, but on blue areas the agent can not enter. In this example, I need set blue cost on 2 and purple cost on 1, making the agent not walk near the walls, but walk near if he not have other option (I make NavMeshObstacles on run time, and is posible to force the only way to the agent destination near of walls)
I tried with the high-level NavMesh building components:
https://docs.unity3d.com/Manual/NavMesh-BuildingComponents.html
But I cant understand the system by myself.
Can you help me? Thanks.