Nav Mesh: Agent stops for a little while after reaching each target on its path (through agent.setDestination)
I don't know how it happened, but for some reason my agent is not in a constant speed anymore when it travels through my arrays of targets. It has worked before, so something must have happened.
My code looks like this:
for (int i = 0; i < target.Length; i++) {
if (agent within target[i]) { //pseudo
if (i < target.Length-1){
agent.SetDestination(target [i + 1].transform.position);
}
}
}
I also tried changing the Nav Mesh Agent parameters, like speed, acceleration and angular speed, but nothing seem to make it smoother. Does anyone have an idea of what I am doing wrong, please?
Your answer
Follow this Question
Related Questions
Navmesh, help setting position to nearest tag? (Javacript) 0 Answers
How to get the closest object in the navMesh and making the agent move towards it 1 Answer
How to make the agent reach the nearest "area of an object" 2 Answers
Are nav mesh agents not supposed to find the path when getting stuck in other nav mesh agents ? 1 Answer