Search Unity

NPC runs in place using NavMesh

Discussion in 'Navigation' started by StewieL, May 27, 2020.

  1. StewieL

    StewieL

    Joined:
    May 27, 2020
    Posts:
    1
    Hello!

    I'm new to Unity, and I've recently discovered NavMesh and NavMeshAgent. I have a simple game, where I have 3 NPC and they all have points in the map that they need to go. I've animated them with a running animation but the thing is, whenever I use NavMesh and NavMeshAgent the NPC just runs in place.
     
  2. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,756
    You have to Bake NavMesh (Window/AI/Navigation).