- Home /
navmesh cost for diffrent terrain texture
Hi,
I'm working on a farm simulator. You start on a field and can build farms and roads. This all happens on one terrain that has the moving cost of 1. Let's say the player build a road (the terrain texture is change from "grass" to "road"), how can i change the movement cost on the part of the terrain where the road is? Is this even possible?
You can edit the costs of the navmesh layers. Did you look at http://docs.unity3d.com/462/Documentation/$$anonymous$$anual/NavLayersAndCosts.html ?
Answer by rmassanet · Jul 19, 2016 at 08:24 AM
It is possible. However, the only way I know how to do it is using different meshes for the different terrains. To do so, you have to open the Navigation window, go to the Areas tab and define the different "terrains" and their cost. Then, select a navigation mesh, go to the Object tab, and set the Navigation Area you want.
Your answer
Follow this Question
Related Questions
Terrain texture low quality 0 Answers
Blob Shadow and Trees Using Terrain Cause Issues 0 Answers
create terrain using script 1 Answer
Why has my terrain suddenly gone blurry? 2 Answers
HELP- my grass is all pixelated 1 Answer