Search Unity

How to move NavMeshAgent from NavMeshSurface A to NavMeshSurface B.

Discussion in 'Navigation' started by niflying, Feb 3, 2018.

  1. niflying

    niflying

    Joined:
    Jul 11, 2012
    Posts:
    108
    Hi guys,

    Please help, I got a problem with NavMeshAgent.move().

    I need my character cross NavmeshSurface A to NavmeshSurface B. I build a scene like this:

    20180203204058.png


    The problem is that I cann't move the character from navmeshAgent A to B.

    But, if I add a navmeshlink and use navmeshAgent.SetDestination() to move . The navmeshagent can cross.
    But, NavMeshAgent.move() still not work.

    20180203222937.png

    how to cross two navmeshsurface with NavmeshAgent.Move()?
    Any idears?
    Thank you.
     

    Attached Files:

    Last edited: Feb 3, 2018
  2. laessnb

    laessnb

    Joined:
    Jun 10, 2014
    Posts:
    101
    Unfortunately this doesn't work. Even if you try to do things manually, the NavMeshAgent doesn't detect the presence of off mesh links. Super confusing.