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 infinitypbr · Nov 02, 2013 at 12:02 AM · navmeshnavmeshagentnavigation

Get NavMeshAgents (Enemies) to not bunch up together

Hello!

As you can see from the image attached, a lot of skeletons (selected) are attempting to get close to the player (the grey thing in front). However the ones in the back just want to move forward, and don't consider other skeletons to be blocking their path. So the result is a huge mob of enemies only in one direction.

Is there a method of getting the skeletons to move around and encircle the player, similar to other games like starcraft, where a huge mob will find it's ideal spot and if blocked by other enemies, move around instead of just forward?

alt text

navmesh.jpg (101.5 kB)
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 Lost_C4 · Feb 28, 2014 at 10:24 PM

  1. Check the Nav Mesh...

  2. Maybe you shoud disable the collision for enemy to enemy to test Change the Layer Physics.

  3. You have probably set the stoppingDistance to high.

  4. Assign an obstacle thing for agents... to your player.

Just play around and see what could be the problem.

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 mossman3333 · Jun 22, 2014 at 06:39 PM

I might make a bunch of empty objects to use as attack position markers. Then attach them to the player so they move with the player. Then have the agents target the attack markers. Make a script for the markers with a claimed bool. When an attacker goes to that marker, set it as claimed. Then make others search for an unclaimed pos. Be sure to clear claimed when they die. Make as many markers as you need. And maybe add a little random offset if it looks too regular.

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 scplayer1 · Apr 12, 2016 at 09:58 AM

Ive heard of a technique where you can enable a navmesh obstacle on the enemies when they start attacking. This will cause other enemies to path around them. There is a lot of work figuring out when exactly to enable/disable

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.

Follow this Question

Answers Answers and Comments

18 People are following this question.

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

Related Questions

Getting a navmeshagent back on a navmesh. 1 Answer

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

What is the difference between configuration of agent in 'Agents' tab and in 'Bake' tab Unity? 1 Answer

How to prevent NavMeshAgents from colliding when warped to same position? 0 Answers

NavMeshAgent Navigation over Rough Terrain 1 Answer


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