Search Unity

Off Mesh Links won't work with NavMesh.CalculatePath()

Discussion in 'Navigation' started by electro_unity, Dec 30, 2018.

  1. electro_unity

    electro_unity

    Joined:
    Nov 29, 2015
    Posts:
    64
    Is this correct? This method is ignoring completely my off mesh link, am I doing something wrong or is it the expected behaviour?
     
  2. electro_unity

    electro_unity

    Joined:
    Nov 29, 2015
    Posts:
    64
    This tutorial uses NavMeshAgent (which works correctly for me with off mesh links) but I don't. I get the path directly from NavMesh.CalculatePath(). I suppose they should work the same way...
     
  3. The NavMeshAgent under the hood uses the same methods. Although I believe it uses the async version.
     
  4. electro_unity

    electro_unity

    Joined:
    Nov 29, 2015
    Posts:
    64
    First of all, thanks for your time. About the NavMeshAgent.SetDestination() asynchrony, as far as I know, it does only affect to how are the calculations distributed along the frames (in order to not saturate the CPU). However the calculations themselves, should be the same methods...
     
    Griffo likes this.