Search Unity

NavMesh.CalculatePath() incorrect

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

  1. joshuacwilde

    joshuacwilde

    Joined:
    Feb 4, 2018
    Posts:
    731
    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: