I’ve been using the default NavMesh for the RTS game I’m working on.
Using NavMeshArea I’d like to create a certain zone that has the following properties depending the agent that crosses it:
-
An agent of a certain type can and will take this path as he can use it as a shortcut.
-
Any other agent needs to avoid this path as it basically kills them.
-
The NavMeshArea should change dinamically upon the placing of this shortcut.
Is it possible? I’m not asking about dynamic baking because I know it can’t be done, I ask about changing the NavMeshArea.
If so, how can I set the NavMeshArea and the NavMeshAgents to do this?