Search Unity

How to determine if navmeshagent is currently travelling through an offmeshlink?

Discussion in 'Navigation' started by yokenstein, Feb 18, 2018.

  1. yokenstein

    yokenstein

    Joined:
    Sep 19, 2017
    Posts:
    84
    There are ways to check if a navmeshagent is ON a navmeshlink, but i'm looking to execute climbing/dropping animations that only need to be executed when the agent is actually traversing through an offmeshlink, NOT when the agent is ON an offmeshlink.

    Any ideas how I can go about accomplishing this seemingly simple task?

    Thank you
     
  2. Myrault

    Myrault

    Joined:
    May 31, 2017
    Posts:
    10
    Hello! Disable auto trigger link and poll the agents link status each update. If status was null/none and is on link now => manually trigger link and animator.setTrigger