unity 5 navmesh updates

I was just reading through the new features of unity 5 and noticed a small mention that there are navmesh updates.

Any chance that could be elaborated on?

I found in unity 4 the navmeshagents slow down when they get close to each other because of the avoidance, but that means you can’t get 2 characters to run and attack each other without them slowing down just before attacking. I guess it’s ok for a shooter as they can attack from a distance, but for an RPG type game where the main character is also driven by a NavMeshAgent, it doesn’t work very well.

I recommend disabling avoidance when navmeshagents are engaging in close combat. (see NavMeshAgent.obstacleAvoidanceType).
You’ll probably need specific positions/orientations timing and animations in any case.

The same goes for performing special movements like jumps - and player controlled navmeshagent characters.

Note that by-standing characters (with avoidance enabled) will still be avoiding the non-avoiding characters.

1 Like