Documentation
    Preparing search index...

    Function evade

    • Evade (§12): flee where a constant-velocity threat will be.

      The exact mirror of pursue: same lead time (the moment a seeker with this agent's maxSpeed would meet the threat, which is the horizon worth running from), then flee instead of seek. From rest, evade is the exact componentwise negation of pursue with the same arguments.

      Parameters

      Returns Vector3