Setup 3D Pathfinding Agents In Minutes Using Unity

  Рет қаралды 72,738

BMo

BMo

2 жыл бұрын

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 Жыл бұрын
I like how straight your way of explaining things to audience. No too much talking. Just Pure knowledge.
@FernandoDenise2558
@FernandoDenise2558 2 жыл бұрын
Dude your tutorials are A1 quality and instruction, gonna be the next big gamedev tutorial channel. Keep it up!
@lohding_
@lohding_ 11 ай бұрын
You may have to install AI Navigation in package manager, Window > Package Manager. Then find the AI tab towards the top under Window
@hipunpun
@hipunpun 8 ай бұрын
Thank you!
@deepeshmaiya1849
@deepeshmaiya1849 5 ай бұрын
Thanks..!
@NexusBaum
@NexusBaum Жыл бұрын
so much use in just a few clicks. this is awesome! thank you!!
@AleksandarDaGr8
@AleksandarDaGr8 Жыл бұрын
Yeah honestly you are probably the best man for tutorials I have found as I learn Unity 3d, tysm
@eileeng2492
@eileeng2492 2 жыл бұрын
Method fast and efficient. BMo your vids are consistently helpful
@yonatanabergel
@yonatanabergel Жыл бұрын
You make it so easy, thank you for this tutorial!
@Smietsde
@Smietsde 7 ай бұрын
Finally I found someone who can explain this good! Thank you!
@alice0067
@alice0067 Жыл бұрын
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 8 ай бұрын
You are awesome dude! That's what i was looking for
@Fr33mix
@Fr33mix Жыл бұрын
this is crazy i programmed pathfinding and now i see this. Its mindblowing
@stevethepirate
@stevethepirate 3 ай бұрын
that helped me in a lot of ways. thanks for making things clear!
@goatedzr354
@goatedzr354 Жыл бұрын
thanks so much, there was just 1 problom that i had and couldnt find but u solved my problom, thank you.
@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!
@ahmadkevinadhirazakki3020
@ahmadkevinadhirazakki3020 Жыл бұрын
The best tutorial i have ever seen
@suicune2001
@suicune2001 2 жыл бұрын
Really cool!
@tamvo5557
@tamvo5557 Жыл бұрын
many thanks Mr BMo
@MrFaciio
@MrFaciio Жыл бұрын
Amazing!
@rafaelbrustolin4687
@rafaelbrustolin4687 4 ай бұрын
i didnt know unity had this tool. Amazing!
@corr2143
@corr2143 Жыл бұрын
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 💘
@tgnics
@tgnics Жыл бұрын
Simple and direct to the point. Very good for the "hello world" in unity pathfinding :)
@caradepeido
@caradepeido Жыл бұрын
Agreed! Very good tutorial :)
@Dev_Roids
@Dev_Roids 7 ай бұрын
Thanks So Much!
@RedditStories763
@RedditStories763 Жыл бұрын
OMG Thank you really much
@maciex2702
@maciex2702 Жыл бұрын
thanks, really usefull tutorial
@jtlewis81
@jtlewis81 2 жыл бұрын
this would be a good resource for a game jam game...i need to start a resource list now. lol
@fernandopessoa5304
@fernandopessoa5304 Жыл бұрын
Amazing
@rileymilkman
@rileymilkman Жыл бұрын
man i think i love you you actually know how to make a competent video
@SnowyRedstone
@SnowyRedstone Жыл бұрын
omg. I never thought it was this easy
@maxsun7947
@maxsun7947 2 жыл бұрын
sick video
@cheeseboi9740
@cheeseboi9740 Жыл бұрын
This man is a god !!!!!!!!!!!!!!!!!!!!!!!!!!!!
@gazoutdoors7525
@gazoutdoors7525 4 ай бұрын
Thanks
@jsfrz
@jsfrz 2 жыл бұрын
Nice fast and easy.
@heyreefes
@heyreefes 2 жыл бұрын
good stuff
@maryverson
@maryverson Жыл бұрын
thank you
@TheBrunoRM
@TheBrunoRM Жыл бұрын
4:48 it searches for an object with the "MainCamera" tag, not its name. Great video btw!
@Shredonus
@Shredonus 8 ай бұрын
Just one year was enough to change everything completely so following the tutorial isn't easy... thanks Unity devs...
@KyuDoesCode
@KyuDoesCode 2 ай бұрын
Yep..
@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
@Build_the_Future
@Build_the_Future 2 жыл бұрын
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?
@Build_the_Future
@Build_the_Future 2 жыл бұрын
Future self here, and yes you can, if anyone is wondering
@xticxs4656
@xticxs4656 Жыл бұрын
@@Build_the_Future How?
@grimmkin3741
@grimmkin3741 Жыл бұрын
Yeah how
@Stompin40
@Stompin40 2 жыл бұрын
Pog!
@RenatoT66
@RenatoT66 3 ай бұрын
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 :)
@stormshadowoffire
@stormshadowoffire Жыл бұрын
My navmesh navigation menu only has agents and areas
@therealdeal3837
@therealdeal3837 29 күн бұрын
Same, can anyone help?
@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?
@Arze-l9q
@Arze-l9q Жыл бұрын
Terimakasih banyak
@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?
@1Poiuytgfdsa1
@1Poiuytgfdsa1 5 ай бұрын
If you can't see the blue navmesh surface after baking, make sure Gizmos are turned ON!
@BossAleks123
@BossAleks123 Жыл бұрын
how to do that with more enemys/players
@imheretosleep
@imheretosleep 2 жыл бұрын
hey just wanna ask, can i use a* pathfinding algorithm for 3d games?
@BMoDev
@BMoDev 2 жыл бұрын
Yes you can
@edhalsim
@edhalsim 11 ай бұрын
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 3 ай бұрын
How do fix navigation obsolete?
@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
@WorstDeveloper
@WorstDeveloper Жыл бұрын
I don't have the "bake" and "object" options in the navmesh menu. Does anyone know why?
@urpwnned
@urpwnned 11 ай бұрын
Same here
@rennlee6791
@rennlee6791 Жыл бұрын
can this be done in 2D?
@TransGuyShane
@TransGuyShane 2 жыл бұрын
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 жыл бұрын
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 ♡♡
@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?
@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 ай бұрын
thers is not object or bake tab
@ShadyGamer_OG2024
@ShadyGamer_OG2024 25 күн бұрын
I found a fix and it was to go to navagation (obsolete)
@subscribe_to_meowiation
@subscribe_to_meowiation 25 күн бұрын
@@ShadyGamer_OG2024 oh cool i also found that fix
@p4rzy123
@p4rzy123 5 ай бұрын
Thanks
Basic Saving and Loading in Unity with PlayerPrefs
8:07
How to use Unity NavMesh Pathfinding! (Unity Tutorial)
15:25
Code Monkey
Рет қаралды 206 М.
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 24 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 55 МЛН
NEW AI Navigation - Unity 2023
21:41
FAR Gaming
Рет қаралды 20 М.
Godot 4 3D - AI Pathfinding/Navigation
10:15
DevLogLogan
Рет қаралды 61 М.
Unity NavMesh Tutorial - Basics
11:38
Brackeys
Рет қаралды 1,1 МЛН
New AI Navigation in Unity
8:22
Creative Media Tutorials
Рет қаралды 95 М.
The PERFECT Pathfinding! (A* Pathfinding Project)
24:59
Code Monkey
Рет қаралды 111 М.
I Made A Platformer Game But You're The Enemy
6:12
BMo
Рет қаралды 427 М.
Pathfinding - Understanding A* (A star)
12:52
Tarodev
Рет қаралды 119 М.
I Designed Mark Rober’s 50 Million Playbutton! (Custom)
9:11
Daniel Krafft
Рет қаралды 310 М.
6 Years of Learning Game Development
9:02
Codeer
Рет қаралды 2,3 МЛН
Navigation Mesh Basics | Unity AI Pathfinding (Part 1) | Table Flip Games
14:17
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 24 МЛН