Hey dudes, I am trying to navigate an agent to a point using NavMesh. Here, when I call
agent.SetDestination(target.position);
It set’s its destination after a couple of random seconds. And sometimes this line also doesn’t work. This delay is something very strange and I don’t know why it’s happening. Is this a bug or what? Does anyone know any solution? Pls, let me know!
Is that because it is still computing the path to get there? How are you actually timing this? Obviously agents also have a speed-up and slow-down transition as well…
But when I call SetDestination() on another agent, it instantaneously sets its destination and starts moving towards it. Only this agent takes a weird delay!
Check its direction: I know if an agent is facing the wrong way and is constrained, it won’t start moving backwards. It will spin around fully before it starts moving.
Alternately, as an example to the other agents, have you considered deleting this agent and telling the others that you’ll do that to them if they try anything funny? Development by fear.
No, the destination is in front only!
Does anybody know any solution?
Anyone from Unity Technologies?