Check if an agent is at or near the end of their corridor. Works for both complete and partial paths - if the path is partial, this checks if the agent reached the best-effort position.
the crowd
the agent id
distance threshold to consider "at target"
true if the agent is at the end of their path
Check if an agent is at or near the end of their corridor. Works for both complete and partial paths - if the path is partial, this checks if the agent reached the best-effort position.