Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Navmesh Agent Randomly Stops Working

Discussion in 'Navigation' started by TragicallyCanadian, Oct 7, 2023.

  1. TragicallyCanadian

    TragicallyCanadian

    Joined:
    Mar 26, 2020
    Posts:
    31
    Hello. Upon setting a destination for my Navmesh Agent, if the destination is higher or lower than the current position of the agent, sometimes the solid red line turns into a broken line, and the agent just walks forward into a wall or in whatever direction it was facing when the line became broken. The path is not broken or incomplete.

    Here is a picture displaying the broken line.
    It SHOULD follow the green line down to it's target, but instead it just keeps walking in whatever direction it was when the line went from solid to broken.

    upload_2023-10-7_15-52-57.png

    Any idea what is causing this? And how to fix it?
     
  2. TragicallyCanadian

    TragicallyCanadian

    Joined:
    Mar 26, 2020
    Posts:
    31
    EDIT: Never mind, solution did not work as expected.

    EDIT 02: Real Solution


    upload_2023-10-7_19-18-42.png
     
    Last edited: Oct 7, 2023