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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Anyone else having problems with nav mesh agents in unity 5

Discussion in 'Navigation' started by Gametyme, May 5, 2015.

  1. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    617
    Ive tried with both my game and survival shooter. In unity 4.6 they both worked perfectly but in unity 5 agents get stuck in the ground like the animator isn't initialize or they don't follow the player as they should.
     
  2. Ness

    Ness

    Joined:
    Oct 1, 2012
    Posts:
    182
    Yeah, you need to make agent follow character by script, in Unity manual you can find how to do this, can't remember where exactly.
     
  3. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    617
    The agent should aready follow because it was the completed project in the survival shooter. I figured out the problem on mine, I forgot to put the idle animation in.
     
  4. BumbleBeeLindsay

    BumbleBeeLindsay

    Joined:
    Jun 5, 2015
    Posts:
    6
    I'm having a similar problem with the survival shooter, but the bunnies and bears don't get stuck in the ground per se, they just move really slowly, as if it's only another bunnies or bear popping up behind them that is forcing them forwards. I get an error come up saying that I need to rebake the NavMesh because an asset has changed, or something like that. So I rebake, run the program, and up comes the same error, every time. I don't understand why, but I'm given to understand that quite a number of people are having this issue with the NavMesh in the survival shooter game.
     
  5. thiagobrauer

    thiagobrauer

    Joined:
    May 29, 2016
    Posts:
    1
    I had a problem with nav mesh when following the Survival Shooter tutorial. What happened is that the floor game objects were not been included in bake. So, inside Hierarchy I selected Enviroment -> Floor -> Base, then on the Navigation tab, inside Object I marked the option Navigation Static. Also make shure that Navigation Area is set Walkable. Then I just baked again and everything was working fine!
     
    JBR-games likes this.