Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by iso250 · Apr 27, 2015 at 11:45 AM · collisionnavmeshagent

Any way to make Nav Mesh Agents not collide?

Hello all.

Firstly, I've been learning how to use Unity for 2 weeks now and I have to say thank you to all of the people who write in this forum. You've already helped me more than you know.

I'm trying to make a game with multiple enemies making their way through a maze. Most of these ignore the player and just go about their business. The thing is that I want them to be able to collide with the player and walls but not with each other.

I've followed the instructions in this link but it doesn't seem to work. (The link outlines putting objects that you don't want to collide with each other on the same layer and then using the collision matrix to stop them from colliding with each other. It didn't work.)

Does anyone have an answer?

Thank you.

Comment
Add comment · Show 4
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 termway · Apr 27, 2015 at 12:25 PM 0
Share

Nav$$anonymous$$eshAgent have their internal collider and it's maybe your problem. Try to reduce the agent radius size to the $$anonymous$$mimum and add a common capsule collider on your agents.

avatar image iso250 · Apr 27, 2015 at 08:12 PM 0
Share

I tried that. Unfortunately they still collide with each other. Additionally such a small radius agent makes the objects overlap the walls of the maze whilst navigating through it. Thank you for your suggestion, however.

avatar image termway · Apr 27, 2015 at 08:17 PM 0
Share

If you remove Nav$$anonymous$$eshAgent are they still colliding ?

avatar image iso250 · Apr 29, 2015 at 03:30 AM 0
Share

No Nav$$anonymous$$eshAgent, no collision. It seems Nav$$anonymous$$eshAgent isn't working as intended. I've found other issues with it, too. This may mean Unity isn't going to work for my game.

That's a shame.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by tyrex · Sep 17, 2015 at 05:59 PM

I had the same problem and what worked for me was to set obstacle avoidance to "None" and increasing the radius of the agents so that the resulting mesh was a bit away from the walls the agents should not collide with

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 mubashar437 · Apr 30, 2015 at 07:17 AM

tweak "Obstacle Avoidance Quality" and "Obstacle Avoidance Priority". these causes more load on CPU so find a sweet spot with them.

A bit advance but try Raycast with navmesh agent...

Comment
Add comment · Show 1 · 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 iso250 · Apr 30, 2015 at 08:35 PM 0
Share

Good idea but unfortunately didn't work. I'm just going to have to make them avoid each other. Not the best option but better than having the game not work!!

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.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

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

NPC's bump into eachother trying to reach a position 1 Answer

OnTriggerEnter not activating with NavMesh movement 2 Answers

No player is colliding with enemy even with capsule collider !!! Please me help me. 0 Answers

NavMesh on collision dectection activate,On collision activate navMesh 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges