• 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 nolan_oc · Jan 15 at 09:14 PM · navmeshnavmeshagentmovenot workingnavigation

NavMeshAgents rotate to target but do not move

I have some gameobjects that are not responding to the navmesh.destination while others do. The problematic ones only rotate to face their target but do not move. If I put the same script on a cube for testing it does in fact move.

I know this is fairly vague, but what are some common errors with navmesh agents? Any components or settings need to be checked?

I'm at a loss here so any ideas would be greatly appreciated!!!

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 CodesCove · Jan 16 at 08:00 AM 0
Share

Some things to check.. Generally check what are the differences btw working and non-working objects. Position in the navmesh?, Agent Settings? Any other components / methods that try to control the transform / If the GO's have rigidbodies then check that they are set to Kinematic... check also this: https://docs.unity3d.com/$$anonymous$$anual/nav-$$anonymous$$ixingComponents.html

Other things to check: Rebake the mesh and check the navmesh to make sure that the objects that don't move have actual path to the destination. You could have, for example slopes, that exceed the angle limit and cut out the navmesh or .. or something similar.. $$anonymous$$aybe also try to use Nav$$anonymous$$eshAgent.SetDestination(position). You can check it's return value if the path was requested successfully. Check also agent speed that it is well above zero. For example speed of 0.05 might seem the object position stays same although it still turns. Check the Agent Type setting that there are not something that might cause agent to stop (max slope, step height). Hope you get it working!

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.

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

120 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 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 and rotation before movement 1 Answer

Navigation Mesh + Doors 0 Answers

Way to find closest point in a specific area on navmesh. 0 Answers

How to join navmesh, when navmesh when applied doesn't join? 1 Answer

Increase size of obstacle - navmesh 1 Answer

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