navcat docs
    Preparing search index...

    Function isAgentAtTarget

    • 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.

      Parameters

      • crowd: Crowd

        the crowd

      • agentId: string

        the agent id

      • threshold: number

        distance threshold to consider "at target"

      Returns boolean

      true if the agent is at the end of their path