Search Unity

Navmesh agent leaves character behind

Discussion in 'Navigation' started by Censureret, May 22, 2020.

  1. Censureret

    Censureret

    Joined:
    Jan 3, 2017
    Posts:
    363
    So i have this issue that my character gets stuck and the navmesh just "leaves" the body of the character:

    upload_2020-5-22_15-30-20.png

    After an extended test I think I found out where the issue is however I don't know how to solve this:

    When an NPC plays an animation and the navmesh agent is being told to move the navmesh agent leaves the body while the NPC plays the animation. Sometimes the Navmesh agent jumps back onto the character but other times it straight up leaves him and never returns.

    Has anyone ever tried this? And maybe know of a fix?
     
  2. vhman

    vhman

    Joined:
    Aug 13, 2018
    Posts:
    359