Search Unity

NavMeshPath cutting through slopes in CalculatePath

Discussion in 'Navigation' started by augmentaio, Jan 24, 2020.

  1. augmentaio

    augmentaio

    Joined:
    Jun 14, 2016
    Posts:
    8
    My NavMeshPath doesn't stick to the surface of slopes (or stairs) but sometimes takes a shortcut and goes through objects even though the NavMeshSurface looks perfect. I already played around with values of my Agent and the NavMeshSurface without good result. I have found this issue in other forums too, but never with the right answer. Hopefully one of you can help.
    In following example image you can see an extreme example (for bettr viz I added arrows along the path) where the line cuts through the second slope and goes directly to the targen in the upper level (top right corner).
     

    Attached Files:

    NelsonChristensen likes this.
  2. KingCeryn

    KingCeryn

    Joined:
    Feb 8, 2018
    Posts:
    158

    Did you ever figure this out? I'm trying to get the NavMeshPath on a terrain to transfer elsewhere, but it won't work
     
    NelsonChristensen likes this.