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

navmesh agents goes inside objects and walls!!

Discussion in 'Editor & General Support' started by Bobby1990, Jul 10, 2015.

  1. Bobby1990

    Bobby1990

    Joined:
    Mar 20, 2015
    Posts:
    3
    Hi, i have a strange problem. i created some walls in my scene made them static and baked my scene. added a navmesh agent to the enemy character but when it is walking near the walls it's goes inside the walls. pics are below.
    and i'm using a 2d sprite that looks at camera for my enemy.



     
  2. Sickwitit

    Sickwitit

    Joined:
    Dec 22, 2014
    Posts:
    123
    Is there a collider on the cube?
     
  3. Bobby1990

    Bobby1990

    Joined:
    Mar 20, 2015
    Posts:
    3
    yes it has mesh collider (i made boxes with prototype)
     
  4. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Does the navmesh recognize the colliders you placed?