Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Wierd nav mesh issue

Discussion in 'Navigation' started by Shadowing, May 31, 2018.

  1. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,647
    I have this odd issue.
    My character moves from right to left no issues.
    Then when I tell him to move from the left diamond location to the right he won't move.
    If I increase his y axis position slightly then he starts moving to the right diamond.

    both locations are on the nevmesh. Nevmesh shown in the pic.
    I"m at a total loss here. The surface is completely flat.

    anyone have any ideas?


     
  2. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,647
    A new update on this problem. If I disable NavmeshAgent and then enable it back he walks to the right diamond.
    I get alot of errors to when I disable that component.
     
  3. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
  4. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,647
    I'm on version 2017.3.1 p1
     
  5. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,647
    Idk I give up. Sob anyways. I'm doing a promotional video so I needed the animation to be super smooth. Just gonna go another route to avoid what I was trying to do.
    I went as far as even removing the nav mesh component and wait several frames and then add the component back and even the script that controls the movement and still it does it.

    It seems once I move it to a destination it will not move to another one.
    I'm not using Path.

    Its really strange. I have it working fine in my game. Idk why this situation is so different.
    Once idea is maybe it has something to do with it being on the edge of a map and nav mesh is just failing.
     
  6. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,647
    Just tested. Its not from being on the edge of the map.