Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Atorcoppe · Jul 21, 2017 at 11:38 AM · navmeshnavmeshagent

Navmesh Agents: Bad pathing, and walking into things

Hey there,

I was hoping that I could get some advice for some Navmesh Agent oddities that I'm getting.

The Navmesh is baked using all default settings, and using the new component based navmesh system, and I use a lot of carved non-moving obstacles.

The issue I'm getting are as follows: 1) My agents often times just get stuck in a spot and sway around wildly like they're tied to the end of a rope and cannot escape 2) They often times choose the most stupid path, and instead of going directly to a point will often go out of their way to double, or even triple the path by going around things. 3) They walk into my carved obstacles and just keep trying to move through it instead of going around.

The agents are set to medium for obstacle avoidance, and I change their priority using a coroutine every minute or so, which works really well to get them to avoid each other... They hardly ever walk into other agents, but very often will just sit their walking against a wall that has a carved obstacle on it.

It is probably worth noting that my script for controlling the Agents will get the closest point on the navmesh close to their destination, then calculate and set their path. Once their path is set I then run a coroutine that sets their destination vector every few seconds (in an attempt to stop it going bad), and then when they stop moving I check to make sure they're actually close to their destination, and if they're I set their destination vector again.

Has anyone got any advice for me? And perhaps a good method to make sure an agent does not get stuck.

Cheers!

Comment
Add comment · Show 1
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 Athomield3D · Aug 01, 2017 at 01:19 PM 0
Share

I'm having the same issues. To avoid navmesh agents from getting stuck out of the navmesh (getting out of the navmesh completely) into obstacles I would make the obstacle uncarved, but now they choose to walk right into the obstacles and get stuck in the way (although they still have an open alternative path). I'm strongly thinking about using an alternative A* package

0 Replies

· Add your reply
  • Sort: 

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

70 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 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 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 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

Navigation Agent "Clipping" (Going inside) Navmesh Deadzone?... 1 Answer

Deleted component errors, yet component is still visible in inspector? 0 Answers

NavMesh Lookat causes jittery glitch in character 0 Answers

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

Can I have 2 navmeshes but only have 1 effected by a nav mesh obstacle? 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