Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

navmesh agents pushing eachother not acceptable

Discussion in 'Navigation' started by NatalieBaldwin, Jul 13, 2017.

  1. NatalieBaldwin

    NatalieBaldwin

    Joined:
    Feb 18, 2017
    Posts:
    62
    I'm 5 months into programming a game with rts-style controls and the navmeshagent/navmeshobstacle components have been coming up short on several features. I had to come up with my own way to say "rotate to face direction before moving" got that working fairly easily. I have to disable the navmeshagent to slide through obstacles using dodge roll mechanics, that works just fine. But every agent also should be an obstacles. It is completely not okay that agents push eachother around and try to walk through eachother all the time. I've tried swapping back and forth between the agent/obstacle components in code and it's a nightmare and a disaster. Does anyone have a good fix or know of a different pathfinding system that doesn't include this issue? It has to be a fast enough pathfinding system to use on ~100 units constantly.