Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

NavMesh.CalculatePath() incorrect

Discussion in 'Navigation' started by joshuacwilde, Jul 23, 2020.

  1. joshuacwilde

    joshuacwilde

    Joined:
    Feb 4, 2018
    Posts:
    63
    I am creating a trail renderer using the corners from NavMesh.CalcuatePath().

    For some reason, it sometimes fails to generate correct paths when there are slopes or stairs, as seen in the images. You can see that in the image where I have the NavMesh and HeightMesh visible, those look correct, but the NavMesh.CalculatePath() seems to jump over some spots.

    Is there any known method for fixing this?

    Thanks.
     

    Attached Files:

unityunity