- Home /
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!!!
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!
Answer by savvino99 · Apr 02 at 06:13 PM
i have the same problem i have been changing everything for the past 3 hours no luck..
Your answer
Follow this Question
Related Questions
NavMeshAgent Rotate With Model 0 Answers
Get NavMeshAgent to look where it's going 0 Answers
how to generate infinite nav mesh path 2 Answers
NavMeshAgent Destination Problem 0 Answers