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 Skaster87 · Aug 07, 2017 at 01:37 AM · navmeshnavmeshagent

NavMesh Agent error, will never detect ground

Hi,

I have a project I have been working on for a few months, upto this point I had been using transform.translate to do all my movement. Now I'm implementing NavMesh agents to a few GameObjects, and regardless of what I do I always get the error:

"SetDestination" can only be called on an active agent that has been placed on a NavMesh."

Steps I've taken:

1)I baked my environment marking the ground as static, I see all the purple and blue, and the NavMesh Agent is touching the ground.

2) I've created a new project and have successfully been able to use the NavMesh Agent.

3) I've deleted my library and project settings, but the issues persists.

4) I followed all steps mentioned here http://answers.unity3d.com/questions/507534/setdestination-can-only-be-called-on-an-active-age-1.html

Finally, I was able to create a new project and copy over my assets folder, and get the navmesh to work in a new scene, but I'm missing things like my custom layers and whatnot. Additionally, any saved scene from the old project still gives me the error.

Any ideas to reset the NavMesh? or suggestions on cloning a project without having to redo all the work. I'd prefer not to have to recreate my entire scenes to use NavMesh.alt text

navmesherror.jpg (408.5 kB)
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 Skaster87 · Aug 08, 2017 at 04:10 AM 0
Share

It actually had to do with my agent types, Humanoid would work, but no other type would, and baking a new path and agent didn't seem to work.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by x4637x · Aug 08, 2017 at 07:07 AM

At the bottom of your Nav Mesh Agent component there is an "Area Mask" setting, you need to make sure that include your area in there before you bake.

Also you might want to use NavMeshAgent.Wrap() instead of something like transform.position() to place your agent onto the nav-mesh.

If all those step doesn't fix your problem, you could try increase your agent's step high for a bit, the nav-agent is quite harsh on the distance between their "foot" and the nav-mesh.

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

71 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 avatar image

Related Questions

NavMesh giving jerky like motion 0 Answers

Toggling NavMeshAgent and NavMeshObstacle 2 Answers

check if agent reach destination 1 Answer

line in navmesh obstacle 1 Answer

Find the nearest location and move to a target outside Navigation Mesh? 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