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

I made a enemy script but because of it I am having some problems

Discussion in 'Scripting' started by Valentinon13, Nov 17, 2015.

  1. Valentinon13

    Valentinon13

    Joined:
    Jan 13, 2015
    Posts:
    10
    Hi guys I am using a script for my enemys now I Have a problem my charachter walks treu
    walls how can i fix it my player is using a nav mesh agent and it is not working wel whit the requirements for my coliders
     
  2. aLovedHater

    aLovedHater

    Joined:
    Oct 12, 2014
    Posts:
    16
    not sure what you said but if you mean your character with a navmesh is walking though walls, make sure when you bake the scene you label those walls so that the enemy knows that it can't walk though them
     
  3. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,744
  4. Valentinon13

    Valentinon13

    Joined:
    Jan 13, 2015
    Posts:
    10
    Problem fixt