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. Dismiss Notice

AI Random Patrol / AI Navigation /

Discussion in 'Getting Started' started by Aesthetic1044, May 8, 2018.

  1. Aesthetic1044

    Aesthetic1044

    Joined:
    May 8, 2018
    Posts:
    4
    Всем привет! Я из России и у меня возник вопросик. Я хочу, чтобы бот патрулировал территорию случайным образом, обходя игровые объекты. метров этак на 10-15 хз. Так вот проблема состоит в том, что я не нашел не одного ресурса где об этом бы рассказывалось. Если вы поняли и сможете помочь, то я буду очень вам благодарен!:rolleyes:

    Hello everyone! I'm from Russia and I have a question. I want the bot to patrol the area at random, bypassing game objects. About 10-15 meters I think. So here is the problem is, that I not has found not one resource where about this an. If you understand and can help, I'd really appreciate it!
     
  2. diegomendes

    diegomendes

    Joined:
    Sep 20, 2014
    Posts:
    29
    You can use an NavMesh(Navigation Meshes), that creates the limits to where the characters can go.

    There many tutorials about this on the web. Here is the manual for Navigation on Unity:

    https://docs.unity3d.com/Manual/Navigation.html
     
    JoeStrout likes this.
  3. Aesthetic1044

    Aesthetic1044

    Joined:
    May 8, 2018
    Posts:
    4
    Thank you so much!