NEW AI Navigation - Unity 2023

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии •

  • @zagstrug9053
    @zagstrug9053 Год назад +7

    Thanks for mentioning the Unity version & package you're using! That's a really important step in my opinion which many tutorials just skip

    • @FAR-Gaming
      @FAR-Gaming  Год назад

      Appreciate the feedback! 🙂

  • @FreeHelm
    @FreeHelm Год назад +6

    This was really clear and informative, thanks!

  • @Leito4Gaming
    @Leito4Gaming 7 месяцев назад +1

    Excelent video tutorial! Thank you very much!

  • @androvictrayo-dy7eh
    @androvictrayo-dy7eh Год назад +1

    wow, this is a good tutorial , it is really basic and easier to understand

  • @Sylfa
    @Sylfa Год назад +5

    Just a tip, you don't need to put the characters on their own layer, anything that is a NavMeshAgent is excluded from the NavMeshSurface. It's essentially assumed that any agent would not count as an obstacle, if you wanted them to be one you would have to add the NavMeshObstacle to them.

    • @FAR-Gaming
      @FAR-Gaming  Год назад +2

      I tested this out and you're right! Thanks for the tip!

    • @Sylfa
      @Sylfa Год назад +1

      @@FAR-Gaming You're welcome! It seems early videos from unity about the navigation system mentioned this feature, but it never made it into the manual. So anyone who tries to learn it *now* would have to guess it works like that or look at the oldest videos that are partially outdated now.

  • @jorgeelskizo2017
    @jorgeelskizo2017 Год назад +1

    really nice tuturial. Could you create a tutorial while using ai navigation, the ai follows the path to the player and hits if is close enough? ranged or melee

    • @FAR-Gaming
      @FAR-Gaming  Год назад +1

      Great suggestion! I'll start working on this!

    • @FAR-Gaming
      @FAR-Gaming  Год назад +1

      Tutorial for getting the AI to follow the player will be live first thing in the morning. AI attacking the player will hopefully be up within a couple weeks. Thanks again for the suggestions!

    • @jorgeelskizo2017
      @jorgeelskizo2017 Год назад

      @@FAR-Gaming Thanks!

  • @NakedApeGaming
    @NakedApeGaming Год назад

    This was great! Just what I needed. Thanks!

  • @jihadrouani5525
    @jihadrouani5525 Год назад +2

    I was used to the old navigation system this one seem more powerful and allows for a higher level of control, although I wonder if the pathfinding itself or the performance of this new system is improved over the old one...

    • @FAR-Gaming
      @FAR-Gaming  Год назад +1

      I agree. I assume the pathfinding still works about the same performance wise, but them making this a package of its own instead of including it natively in unity will really allow for updates/improvements without having to push a whole new Unity version.

    • @studioshitaketakashita7093
      @studioshitaketakashita7093 Год назад

      @@FAR-Gaming assigning nav static suck'd azz lol

  • @juleswombat5309
    @juleswombat5309 Год назад

    Thanks I got confused on the new Nav Mesh package. This helps. But annoyed at the additional UI clutter to the scene/game views.

    • @FAR-Gaming
      @FAR-Gaming  Год назад

      A lot of that you can turn off in either the gizmos menu or with the little navmesh box that appears in the corner. Hope this helps! 🙂

  • @archmagesalamar1377
    @archmagesalamar1377 Год назад

    Great tutorial. Looking forward to more about AI navigation.

    • @FAR-Gaming
      @FAR-Gaming  Год назад

      Thank you! Any suggestions on something you'd like to see more about?

  • @citycritteradventures7427
    @citycritteradventures7427 11 месяцев назад

    Great job. V clear, informative and gives a great base to get started with the nav package. Keep up the great work

  • @evancheng9393
    @evancheng9393 11 месяцев назад

    thank you sir

  • @adriamg13
    @adriamg13 Месяц назад

    How can i fix the npc rotation so slow?

  • @athithyaparamesh8251
    @athithyaparamesh8251 Год назад

    Thank you!

  • @studioshitaketakashita7093
    @studioshitaketakashita7093 Год назад

    Please more Unity tuts big up!

  • @dirivial_
    @dirivial_ Год назад

    This was really helpful, thank you for making it!
    Question: Would it be possible to have a priority on certain areas? Imagine smooth rock vs rubble, where the smooth rock would be preferred and could for example grant extra movement speed to the agent traversing it?
    I just started making an RTS-ish game where this mechanic is a pretty important aspect.

    • @dirivial_
      @dirivial_ Год назад

      Okay I just read the documentation and yes, this seems possible.

    • @FAR-Gaming
      @FAR-Gaming  Год назад +2

      Yup! On the NavMesh Surface component where it says "Default Area" and it's set to Walkable, click the drop down and select "Open Area Settings". In there you can make multiple surface types and set their "cost". So you could make rubble have a cost of 5 and smooth rock be 1. And then the AI will only cross the rubble if 1) That's it's only choice OR 2) if the cost of going over the rubble is still cheaper than taking the long way around. Here's a video that explains cost really well. I hope this helps!
      ruclips.net/video/B3o_9JS6fOc/видео.html

    • @dirivial_
      @dirivial_ Год назад

      ​@@FAR-Gaming Thank you! 😀

  • @sukandakiangkai
    @sukandakiangkai Год назад

    Thank u 🥰🥰🥰

  • @CapnSudz
    @CapnSudz 4 месяца назад

    How do I rebake a navmesh at runtime with this new system? I need to 'snap' pieces of world together procedurally at runtime and then bake the mesh. Help

    • @Nixka
      @Nixka 2 месяца назад

      Gotta get the navemshsurface component referenced in a script then run .bake

  • @UrbestM8
    @UrbestM8 Год назад

    W tutorial 👍

  • @LorenzoRinato
    @LorenzoRinato 6 месяцев назад

    hi can you help me about the AI Navigation

  • @moddyp4989
    @moddyp4989 Год назад

    when i click on window and ai it shows navigation and navigation obsolete but when i click navigation it only shows agent and areas and the obsolete one shows agent areas bake and object pls help

    • @FAR-Gaming
      @FAR-Gaming  Год назад

      What are you needing help with? A lot of the options that used to be in a separate window (Window -> AI -> Navigation) are now built into the components that you attach to GameObjects. So the baking option is part of the NavMesh Surface Component you can add to your ground or navigable surfaces. And you can manage your AI Agent Types from the dropdown at the top of the NavMesh Agent component that you attach to a character. It'll give you an option to open Agent Settings. I hope this helps! Let me know if there's something else you'd like help with!

    • @moddyp4989
      @moddyp4989 Год назад

      I need help fixing the tool because when i try to bake it it says that it bakes but when its done it does not show me@@FAR-Gaming

    • @FAR-Gaming
      @FAR-Gaming  Год назад

      In the bottom right corner of your scene editor, is the box checked for it to show you navmeshs?

    • @moddyp4989
      @moddyp4989 Год назад

      yes but when i click bake it does not work when i click window, ai and navigations it pops up without bake and object but the obsolete one shows them but does not show the navmesh when i bake it@@FAR-Gaming

    • @FAR-Gaming
      @FAR-Gaming  Год назад

      Don't bake it from there. Add a NavMesh Surface component to your ground. At the bottom of that component with be a button to bake. Use that button instead.

  • @mohsinanwaar5603
    @mohsinanwaar5603 10 месяцев назад

    Can anyone help me that when I bake my NavMesh My Player colliding isn't wqorking properly can anyone please help me ???

    • @FAR-Gaming
      @FAR-Gaming  10 месяцев назад

      Would love to help but I’d need more info. Another option is posting your issue on one of the Unity reddit pages.

  • @mohokhachai
    @mohokhachai Год назад

    When the new version released

    • @FAR-Gaming
      @FAR-Gaming  Год назад

      The Unity AI Navigation package has been in the works for a while, but as of Unity Version 2022.2 the NavMesh components are no longer included by default and the AI Navigation package must be imported to your project separately.

  • @eyebegclip2890
    @eyebegclip2890 Год назад

    i dont found Ai Navigation. Help me plss

    • @FAR-Gaming
      @FAR-Gaming  Год назад

      Are you trying to find the package to add it to your project? Go up to Window > Package Manager and type in AI Nav and should be the package that comes up. Make sure in the top left your searching through all the packages and not just the ones in your project.