Setup 3D Pathfinding Agents In Minutes Using Unity

Поделиться
HTML-код
  • Опубликовано: 16 мар 2022
  • Unity offers so many tools that get under utilized... The Nav Mesh being something that is so powerful and used to be such a pain to setup in older engines yourself.
    I show how you can setup working pathfinding in a game in literally a few clicks. Obviously this is a simple example, but I think its important to jump into using it yourself to start playing around with it, and I think people get intimidated without seeing how easy it really is.
    ✨Want to support the channel?
    Buy me a coffee ☕: ko-fi.com/bmoli
    ➤SUBSCRIBE to see follow up videos in how we can use Nav Meshes in interesting ways.
    ➤LIKE the video if you enjoyed, it really helps the channel!
    ➤Join our DISCORD SERVER to become a god amongst men: / discord
    Thanks for watching!
    #bmo #unity #tutorial

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

  • @robotec101
    @robotec101 Год назад +4

    I like how straight your way of explaining things to audience. No too much talking. Just Pure knowledge.

  • @FernandoDenise2558
    @FernandoDenise2558 2 года назад +16

    Dude your tutorials are A1 quality and instruction, gonna be the next big gamedev tutorial channel. Keep it up!

  • @lohding_
    @lohding_ 9 месяцев назад +35

    You may have to install AI Navigation in package manager, Window > Package Manager. Then find the AI tab towards the top under Window

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

    so much use in just a few clicks. this is awesome! thank you!!

  • @Fr33mix
    @Fr33mix Год назад +3

    this is crazy i programmed pathfinding and now i see this. Its mindblowing

  • @eileeng2492
    @eileeng2492 2 года назад +6

    Method fast and efficient.
    BMo your vids are consistently helpful

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

    Yeah honestly you are probably the best man for tutorials I have found as I learn Unity 3d, tysm

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

    You make it so easy, thank you for this tutorial!

  • @Smietsde
    @Smietsde 5 месяцев назад

    Finally I found someone who can explain this good! Thank you!

  • @alice0067
    @alice0067 11 месяцев назад +1

    easy and clean tutorial. This is exactly what i needed, the simple way to implement pathfinding. Now i have a general idea of how to add enemy ai in my game. Thank you

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

    You are awesome dude! That's what i was looking for

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

    that helped me in a lot of ways. thanks for making things clear!

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

    This is an AWESOME tutorial!
    I expecting things to be challenging but I literally have Baldi up and running in my game already!

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

    thanks so much, there was just 1 problom that i had and couldnt find but u solved my problom, thank you.

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

    i didnt know unity had this tool. Amazing!

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

    The best tutorial i have ever seen

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

    many thanks Mr BMo

  • @jtlewis81
    @jtlewis81 2 года назад +1

    this would be a good resource for a game jam game...i need to start a resource list now. lol

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

    thanks, really usefull tutorial

  • @Dev_Roids
    @Dev_Roids 5 месяцев назад

    Thanks So Much!

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

    Simple and direct to the point. Very good for the "hello world" in unity pathfinding :)

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

      Agreed! Very good tutorial :)

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

    OMG Thank you really much

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

    omg. I never thought it was this easy

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

    4:48 it searches for an object with the "MainCamera" tag, not its name. Great video btw!

  • @jsfrz
    @jsfrz 2 года назад +1

    Nice fast and easy.

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

    This man is a god !!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

    man i think i love you you actually know how to make a competent video

  • @suicune2001
    @suicune2001 2 года назад

    Really cool!

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

    Amazing!

  • @corr2143
    @corr2143 11 месяцев назад +1

    Love how the videos are, quick, no bullshit! I only sub to a few tutorials channels, block the youtube algorithm, its almost never useful. BUT YOU ARE! THANK YOU 💘

  • @maxsun7947
    @maxsun7947 2 года назад +2

    sick video

  • @heyreefes
    @heyreefes 2 года назад

    good stuff

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

    thank you

  • @p4rzy123
    @p4rzy123 3 месяца назад

    Thanks

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

    Can you use ray casting or whatever it is called so that a enemy character has to see you first as in it goes into a chase mode while it sees you and then a search mode for a couple seconds after

  • @stormshadowoffire
    @stormshadowoffire Год назад +3

    My navmesh navigation menu only has agents and areas

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

    Amazing

  • @anthonyaldretekid
    @anthonyaldretekid 3 дня назад

    Please help, when I insert the new script into unity it say "The type or namespace name 'Raycast' could not be found (are you missing a using directive or an assembly reference?)" Any idea on how to fix it?

  • @Build_the_Future
    @Build_the_Future Год назад +14

    Do you have to bake everything? For example can you have the wall move around and the agent dynamily find the updated path at runtime?

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

    Unfortunately neither the Mouse hit nor raw Vector3 moved my agent. Any idea why not?

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

    For enemies and dungeons created dynamically in the code, how do I set up AI navigation? I already have a walkable mesh geometry, and I suppose that I need to instantiate a NavMeshAgent and assign the walkable mesh to it. Additionally, I should assign the NavMeshAgent to the enemies. Is this correct? Thanks :)

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

    Just one year was enough to change everything completely so following the tutorial isn't easy... thanks Unity devs...

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

    object reference not set to an instance of an object. on line 15?

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

    Terimakasih banyak

  • @1Poiuytgfdsa1
    @1Poiuytgfdsa1 3 месяца назад

    If you can't see the blue navmesh surface after baking, make sure Gizmos are turned ON!

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

    how to do that with more enemys/players

  • @WorstDeveloper
    @WorstDeveloper 10 месяцев назад +2

    I don't have the "bake" and "object" options in the navmesh menu. Does anyone know why?

    • @urpwnned
      @urpwnned 9 месяцев назад

      Same here

  • @Stompin40
    @Stompin40 2 года назад +2

    Pog!

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

    hey just wanna ask, can i use a* pathfinding algorithm for 3d games?

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

    How do fix navigation obsolete?

  • @jreffjeff7909
    @jreffjeff7909 3 месяца назад

    What about flying entities?

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

    can this be done in 2D?

  • @edhalsim
    @edhalsim 9 месяцев назад +1

    Very nice tutorial! One question: I use a character and animation I downloaded from Mixamo because I want a "person" to walk to a specific location and not run into obstacles. When I first configured the character to walk, all was fine. As soon as I added a NavMeshAgent to the character, all of a sudden it floats above the ground by a noticeable amount so it's walking on air. Any idea what might be causing that? Thanks.

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

    Ok so how do you cahnge the speed it goes towards its target? Thx.

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

      there is a speed variable in the Navmesh agent component.

    • @millopodia
      @millopodia 9 месяцев назад

      not sure if this is still relevant to you but, it's just "agent.speed = 1" but you can change 1 to whatever you want
      or you can also go to the top of the script, add a variable for speed "public float speed = 5" and you will be able to change 5 to anything when you look at the script in the editor

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

    Omfg... It loos too good to be true. Where is a problem? Is it slow? Is it very restricted to map size? I am about to make game with movement type like desperados 3, so I look for exactly this logic. Did you guys find any big problems with it?

  • @TransGuyShane
    @TransGuyShane 2 года назад +1

    Can you do this in 2d games? If so can you do a tutorial on how to do this with 2d sprites and 2d project ♡

    • @martinedelius
      @martinedelius 2 года назад +1

      I'm wondering the same thing, but with a fixed, pre-rendered image as the "floor." Sort of like a top-down tabletop experience.

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

      @SkeepyMakesGames thank you ♡
      Ah man brackeys was great, I started learning game dev with them like 12 years ago or something, sadly they no longer put stuff out there but I'll defo go back and see if i can find that video ♡♡

  • @Manuel-mz8fn
    @Manuel-mz8fn 8 месяцев назад

    I have no NavMeshAgent component

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

    It's all fun and games until you start trying to use animated characters with a navmesh

  • @HalcyonVoid
    @HalcyonVoid 2 года назад

    Navmesh is so annoying. You cant do different areas on terrain without some funky workarounds, cant draw it manually so you have to rebake it EVERY time you make a change, and dealing with off navmesh interactions are a pain.

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

    thers is not object or bake tab

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

    Thanks