I
I
i__egor2021-12-08 08:42:30
Unity
i__egor, 2021-12-08 08:42:30

How can I change the cost of passage for areas for navmechanical agents in the unit (during the game)?

You can place an obstacle around the players. Then they will not pass through them. Now, if for these obstacles you can set the cost of passing through them, then the agents will move along the roads as a priority, avoiding difficult areas. The navmesh in the game is baked according to the generated map, so you cannot designate the area in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2021-12-08
@i__egor

https://docs.unity3d.com/Manual/class-NavMeshModif...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question