I have an issue:
Hello, I’m using the last version of A* Pathfinding Project and I’m having an issue.
I created a pool of prefabs where each one contains a FollowerEntity script.
The idea is that NPCs request a FollowerEntity agent from the pool when they need one, and return it to the pool once they’re done using it.
These are the steps:
-
I request an agent from the stack,
-
I move the Agent to the NPC’s position,
-
I assign it the destination position,
-
the NPC copies the agent’s position until it reaches the destination.
-
Return the agent to the stack when the destination is reached.
The problem is at the starts; the agent doesn’t begin at the NPC’s position but rather from some random position nearby.
Note: that the NPC is on the navmesh
Any idea why this happens?
Thanks