Search Unity

[SOLVED] Navmeshagent's velocity is nonzero even though it had not been set!

Discussion in 'Navigation' started by Brainversation01, Apr 8, 2016.

  1. Brainversation01

    Brainversation01

    Joined:
    May 25, 2015
    Posts:
    16
    Navmeshagent's velocity is nonzero even though path and the velocity is not set by the code.

    I am using it as a player controller and when this bug happens it just slams the agent into the wall. Is there anything I can do to fix this???
     
    Last edited: Apr 8, 2016
  2. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,335
    shouldn't happen unless recent regression, zip a project I can take a look if you want.
     
  3. Brainversation01

    Brainversation01

    Joined:
    May 25, 2015
    Posts:
    16
    Thanks but I solved it, it was a stupid mistake where I had a NavMeshObstacle that was 100 time what it should have been, and as it moved it pushed all other nav mesh