Тёмный

New Unity AI Navigation System - Click To Move & Animation in Unity3d 

Jason Weimann
Подписаться 210 тыс.
Просмотров 15 тыс.
50% 1

Multiplayer Mastery Course - game.courses/mp/
Game Dev Course for Beginners - game.courses/bc/
Join the Group - unity3d.group/
Members Get Early Access to Videos - / @unity3dcollege

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@MasterofGalaxies4628
@MasterofGalaxies4628 8 месяцев назад
Glad to finally get some more in-depth info on the nav system!
@Imanmansouri1
@Imanmansouri1 8 месяцев назад
👋I always had these problems with Ai until dear teacher, you kindly published this video, thank you very much🤍🙏
@bogoid
@bogoid 8 месяцев назад
loving this new format man, keep them coming!
@Unity3dCollege
@Unity3dCollege 8 месяцев назад
Will do!
@R4venshore
@R4venshore 8 месяцев назад
I've also done similar implementations, where I assume that any valid Raycast on terrain is on the Navmesh, you can obiously also filter it by a LayerMask as well. However it might be a good idea for more complex environments to make sure that Vector3 is indeed on a Navmesh, before assigning it to an agent. You can use a method like that to sample the navmesh at the position you want: bool IsOnNavMesh(Vector3 point) { NavMeshHit navMeshHit; return NavMesh.SamplePosition(point, out navMeshHit, 0.1f, NavMesh.AllAreas); }
@antopalis
@antopalis 8 месяцев назад
Great video! I'm glad to see more videos about systems/mechanics!
@lew.bow.studios
@lew.bow.studios 8 месяцев назад
Great tutorial, good sir! Would love to learn more about the navmesh system!
@Unity3dCollege
@Unity3dCollege 8 месяцев назад
I'll definitely do a few deep dive videos on it soon. Any specific thing you're wondering about or want to learn with it?
@ivanrendon00
@ivanrendon00 8 месяцев назад
@@Unity3dCollege Climbing ladders or jumping to non static platforms would be amazing.
@lew.bow.studios
@lew.bow.studios 8 месяцев назад
​@@Unity3dCollege I've been stuck making games that do not rely on the navmesh system cus of the massive gaps in my knowledge when it comes to the system itself. That said, pretty much anything you decide to focus on would be amazing :) and I already learned so much from this initial video!
@dj3psilon566
@dj3psilon566 8 месяцев назад
@@Unity3dCollege how to make it look smoother, it always seems slippy
@kpm25
@kpm25 8 месяцев назад
Thanks Mr Weimann, I'll check it out after work! 😎
@Imanmansouri1
@Imanmansouri1 8 месяцев назад
The use of artificial intelligence in games with a player-less approach and predefined games that play on the field without any player trying to control it can be very good, for example, npc games, simulation, which help in the game world. I always wanted to take this issue forward and do some of these projects, but it was difficult for me
@pixellili2808
@pixellili2808 7 месяцев назад
your style getting cooler and cooler 👍
@Imanmansouri1
@Imanmansouri1 8 месяцев назад
This is great, by watching this video you have covered Ai Navigation very well😎, this will solve our problems in this topic completely, this was a wonderful opportunity.🤩🤩
@yudanaim6849
@yudanaim6849 8 месяцев назад
Great job, not too long or too short great tutorial.
@nobodycares9579
@nobodycares9579 5 месяцев назад
You made that for your kids!? That's amazing.
@jonbednez
@jonbednez 8 месяцев назад
great tutorial. good stuff. thanks for the breakdown. it's hard keeping track of every system, and your videos help immensely. I'm currently using the old nav mesh system, but this looks real promising. I would def watch more of the new nav mesh system.
@italianstyle7611
@italianstyle7611 8 месяцев назад
Thank you for these kind of videos, it's always nice to have a recap of these systems :) I don't understand if it's possible to create a single terrain with different NavMesh modifiers without using any external GameObject (for example distinguishing an asphalted road and a dirty road that could be painted on that terrain)
@ondrejpolcar2872
@ondrejpolcar2872 8 месяцев назад
Hm, you probably could just use some trigger colliders with NavMeshModifier component. Just quick thought, I havent tested it.
@italianstyle7611
@italianstyle7611 8 месяцев назад
@@ondrejpolcar2872 i was thinking about using custom probuilder shape object and use it as NavMesh modifier, but its annoying to maintain if u wanna change the terrain
@tlghnkngl
@tlghnkngl 8 месяцев назад
What about its performance with lots of agents and dynamic (Runtime player placed) objects? Is it any better than the old one?
@lee1davis1
@lee1davis1 5 месяцев назад
I'm having trouble with two things. First, my agents slow their movement speed when walking near NavMeshObstacles. Second, I can not create a variable of type NavMeshSurface? I get Unknown Class.
@dryst8619
@dryst8619 8 месяцев назад
Would like more info on nav agents that answers common scenarios and questions. For instance, how to handle when an enemy is hit by something forceful? It can then get knocked off an edge and fall to its death. Temporarily disabling nav mesh agent after collision then a bool check to reenable? Another situations is when an enemy accidently traverses in poison water or lava then "realizes" it does damage then tries to around it. So some basic ai to chose a safer path.
@Unity3dCollege
@Unity3dCollege 8 месяцев назад
I like these ideas, sound like fun and pretty useful! Will try to get a few of them soon. Any other examples you have in mind btw?
@dryst8619
@dryst8619 8 месяцев назад
​@@Unity3dCollege Thanks, I appreciate what you do. Not sure about more examples right now. Maybe enemies that wander around instead of having a patrol path. Or a homing missile that can use a nav mesh agent realistically.
@MrDingaling007
@MrDingaling007 8 месяцев назад
What if i had a randomly generated level, can the navmesh be calculated after the level has been generated or dynamically updated in runtime?
@Unity3dCollege
@Unity3dCollege 8 месяцев назад
Yes, that's one of the great parts of the new system, it works at runtime for baking :)
@MrDingaling007
@MrDingaling007 8 месяцев назад
@@Unity3dCollege Wow ok i am impressed. And hopefully you will cover this! Cant wait.
@ElectroGamesYT
@ElectroGamesYT 8 месяцев назад
@@MrDingaling007 You can bake it at runtime like this, navMeshSurface.BuildNavMesh();
@ciekawki6574
@ciekawki6574 8 месяцев назад
If my unwalkable object is moving, will navmesh recalculate the path to avoid collision?
@Unity3dCollege
@Unity3dCollege 8 месяцев назад
If things are moving in the way the Agent will do obstacle avoidance to go around it (it's defaulted to the highest precision mode)
@ciekawki6574
@ciekawki6574 8 месяцев назад
Thank you!@@Unity3dCollege
@juleswombat5309
@juleswombat5309 8 месяцев назад
Going up and down lift systems, via LinkedNav meshes would be an interesting topic.
@kureysalp
@kureysalp 8 месяцев назад
This is nothing new, it exists for years. From the title I thought unity made a new Navigation tool with "REAL AI". I am following you for years and liked your videos. But lately you have started doing lots of click baits.
@petersonnormil6799
@petersonnormil6799 8 месяцев назад
Would also love to see more names stuff. Especially how to put it into a structured and modular movement system
@vaibhav4215
@vaibhav4215 8 месяцев назад
sir plese do some complex coding stuff life dynamic programming etc. I want to learn advance about unity and c#.
@vcjg287
@vcjg287 4 месяца назад
This is cool, but why are there no AI NAvigation packages found in my unity registry? All other packages seem to be there except the AI Nav one
@TegridyMadeGames
@TegridyMadeGames 7 месяцев назад
still doesn't work with terrain tree though :C
@Cyngus1088
@Cyngus1088 8 месяцев назад
Could something like this be used to create a creep system like in Star Craft 2, where one set of units moves faster?
@Unity3dCollege
@Unity3dCollege 8 месяцев назад
Definitely, you can set area costs as well so they'll prefer 1 path over another when they have the ability, or use different navmeshes
@abdullah4653
@abdullah4653 8 месяцев назад
thanks for awesome tutorial 👌
@kiing_ot
@kiing_ot 8 месяцев назад
Awesome! Is there a NavMesh support for 2d games asides A* pathfinding?
@phanta_
@phanta_ 8 месяцев назад
Whats 'new' about it? hasn't it been in unity for ages now?
@Macalaka
@Macalaka 8 месяцев назад
Wait what was new about this?
@dclxviclan
@dclxviclan 8 месяцев назад
NavMeshLinks cool stuff
@BUY_YOUTUB_VIEWS.80
@BUY_YOUTUB_VIEWS.80 8 месяцев назад
wish it was longer :/
Далее
3 Game Programming Patterns WE ACTUALLY NEED.
14:13
Просмотров 15 тыс.
4 Ways to MOVE (Pros and Cons) in Unity
8:01
Просмотров 9 тыс.
Scriptable Abstract Abilities
10:53
Просмотров 9 тыс.
Turn your Unity Game Multiplayer, NOW!
3:03
Просмотров 1,2 тыс.
Make Unity Dev Easy with these..
12:54
Просмотров 6 тыс.
The PERFECT Pathfinding! (A* Pathfinding Project)
24:59
Setup 3D Pathfinding Agents In Minutes Using Unity
7:41