Hi,
With dtCrowd I am trying to make agents follow other agents.
What I'm currently doing is find the target agent's dtPolyRef with findNearestPoly and then set the target of the crowd agent. The problem with this method is that using findNearestPoly seems to be pretty expensive, especially considering that a large amount of agents need to follow their own target each in my game.
Is there a built-in way with dtCrowd where an agent can follow another agent?
Or is there a way to retrieve what dtPolyRef an agent is in without having to do unnecessary calculations?
Thanks in advance.