• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by jjobby · May 27, 2012 at 02:30 PM · navmeshagentavoid

Can Navmeshagent avoid other agent?

I have created navigate mesh agents and set their obstacle avoidance to high quality. Each agent has random destination. I've read someone said in the forum that navigate mesh agent can avoid other agents. But from my observation, they can still stuck at each other especially at the corner of wall. Sometimes, they seem to successfully avoid other agents but sometimes they aren't. It makes me wonder if they can really avoid other agents or they just collide at each other until they can slide and pass their obstacle. So, can Navmeshagent really recognize and avoid other agent?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by kentoy · May 30, 2012 at 09:49 AM

Hi man,

I have the same problem. Shall we chat online? My skype is kenwangjia, do you have one? Or email?

Ken

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Tessa · May 30, 2012 at 12:01 PM

I can't say this with certainty as I haven't tried it, but I imagine you could do it by adding another script to the agent. The NavMeshAgent won't automatically avoid things that aren't NavMeshAgents, but you can probably add other avoidance behaviour.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by jessechunn · Apr 01, 2018 at 02:59 PM

I know this is very, very old, but if anyone comes here from a search, look at the priority property on the agent(s). That is where you will find your solution.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

AI to make an object wander around and avoid obstacles? 5 Answers

NavMeshAgent priority 0 Answers

How do I get agents to avoid each other? 0 Answers

How do I get a navmesh agent to stop at the edge of a collider? 0 Answers

NavMeshAgents with same variables acting differently 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges