Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How to use NavMeshAgent.updatePosition

Discussion in 'Navigation' started by yuliang136, Sep 6, 2015.

  1. yuliang136

    yuliang136

    Joined:
    May 4, 2014
    Posts:
    5
    According to the official documentation, when I set the updatePosition to false, I can use the agent's simulated position to drive another component. But where can I get the "the agent's simulated position". In my testing(agent.updatePosition = false), I find the agent.remainingDistance works well even if the transform don't change.
     
  2. JamesLeeNZ

    JamesLeeNZ

    Joined:
    Nov 15, 2011
    Posts:
    5,616