Setup 3D Pathfinding Agents In Minutes Using Unity

Поділитися
Вставка
  • Опубліковано 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

КОМЕНТАРІ • 78

  • @robotec101
    @robotec101 Рік тому +6

    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!

  • @NexusBaum
    @NexusBaum Рік тому +2

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

  • @AleksandarDaGr8
    @AleksandarDaGr8 Рік тому +1

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

  • @lohding_
    @lohding_ 11 місяців тому +40

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

  • @yonatanabergel
    @yonatanabergel Рік тому +2

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

  • @eileeng2492
    @eileeng2492 2 роки тому +6

    Method fast and efficient.
    BMo your vids are consistently helpful

  • @Smietsde
    @Smietsde 6 місяців тому

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

  • @alice0067
    @alice0067 Рік тому +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

  • @Fr33mix
    @Fr33mix Рік тому +3

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

  • @dawidjaworski4174
    @dawidjaworski4174 8 місяців тому

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

  • @stevethepirate
    @stevethepirate 3 місяці тому

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

  • @henstudios_official6498
    @henstudios_official6498 3 місяці тому

    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.

  • @ahmadkevinadhirazakki3020
    @ahmadkevinadhirazakki3020 Рік тому

    The best tutorial i have ever seen

  • @tamvo5557
    @tamvo5557 Рік тому

    many thanks Mr BMo

  • @rafaelbrustolin4687
    @rafaelbrustolin4687 3 місяці тому

    i didnt know unity had this tool. Amazing!

  • @suicune2001
    @suicune2001 2 роки тому

    Really cool!

  • @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 :)

  • @MrFaciio
    @MrFaciio Рік тому

    Amazing!

  • @Dev_Roids
    @Dev_Roids 6 місяців тому

    Thanks So Much!

  • @RedditStories763
    @RedditStories763 Рік тому

    OMG Thank you really much

  • @corr2143
    @corr2143 Рік тому +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 💘

  • @maciex2702
    @maciex2702 11 місяців тому

    thanks, really usefull tutorial

  • @jtlewis81
    @jtlewis81 2 роки тому +1

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

  • @SnowyRedstone
    @SnowyRedstone Рік тому

    omg. I never thought it was this easy

  • @rileymilkman
    @rileymilkman Рік тому

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

  • @maxsun7947
    @maxsun7947 2 роки тому +2

    sick video

  • @jsfrz
    @jsfrz 2 роки тому +1

    Nice fast and easy.

  • @cheeseboi9740
    @cheeseboi9740 Рік тому

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

  • @fernandopessoa5304
    @fernandopessoa5304 Рік тому

    Amazing

  • @heyreefes
    @heyreefes 2 роки тому

    good stuff

  • @Shredonus
    @Shredonus 7 місяців тому +1

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

  • @TheBrunoRM
    @TheBrunoRM Рік тому +2

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

  • @maryverson
    @maryverson Рік тому

    thank you

  • @p4rzy123
    @p4rzy123 4 місяці тому

    Thanks

  • @aedyngillion9457
    @aedyngillion9457 4 місяці тому

    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

  • @anthonyaldretekid
    @anthonyaldretekid Місяць тому

    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?

  • @Stompin40
    @Stompin40 2 роки тому +2

    Pog!

  • @Build_the_Future
    @Build_the_Future 2 роки тому +15

    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?

  • @RenatoT66
    @RenatoT66 2 місяці тому

    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 :)

  • @1Poiuytgfdsa1
    @1Poiuytgfdsa1 4 місяці тому

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

  • @stormshadowoffire
    @stormshadowoffire Рік тому +5

    My navmesh navigation menu only has agents and areas

  • @thomascircle245
    @thomascircle245 Рік тому

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

  • @bjorn3476
    @bjorn3476 Рік тому

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

  • @Arze-l9q
    @Arze-l9q Рік тому

    Terimakasih banyak

  • @BossAleks123
    @BossAleks123 Рік тому +1

    how to do that with more enemys/players

  • @WorstDeveloper
    @WorstDeveloper Рік тому +2

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

    • @urpwnned
      @urpwnned 11 місяців тому

      Same here

  • @edhalsim
    @edhalsim 10 місяців тому +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.

  • @jreffjeff7909
    @jreffjeff7909 5 місяців тому

    What about flying entities?

  • @len6
    @len6 2 місяці тому

    How do fix navigation obsolete?

  • @imheretosleep
    @imheretosleep 2 роки тому

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

    • @BMoDev
      @BMoDev  2 роки тому

      Yes you can

  • @vasiliysmirnov3922
    @vasiliysmirnov3922 3 місяці тому

    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?

  • @rennlee6791
    @rennlee6791 Рік тому

    can this be done in 2D?

  • @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 11 місяців тому

      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

  • @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 10 місяців тому

    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 2 місяці тому +1

    thers is not object or bake tab

  • @gazoutdoors7525
    @gazoutdoors7525 4 місяці тому

    Thanks