How to use Unity NavMesh Pathfinding! (Unity Tutorial)

How to use Unity NavMesh Pathfinding! (Unity Tutorial)

Code Monkey

3 года назад

206,468 Просмотров

Ссылки и html тэги не поддерживаются


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

Osama bin BlazeItUp
Osama bin BlazeItUp - 04.09.2023 20:44

Thank you for an explanation, finally figured out the damned stairs and the jump, thanks!

Ответить
Péter N.
Péter N. - 03.09.2023 16:34

Oh, I'm in the year of 2023, and things have been changed in the Navigation window :(

Ответить
damon fedorick
damon fedorick - 23.08.2023 13:57

anyone esle have troubles with the navmesh building outside of the objects you make for walkable. for me it always seems to put navmesh outside the scene layout, outside of the map border. i can get it to bake fine then when i adjust or add more tiles the mesh just exspands into the void with no objects even there.

Ответить
N V
N V - 20.08.2023 17:50

Would have been great to see where / how you downloaded nav mesh. Otherwise good

Ответить
Sketchman
Sketchman - 19.07.2023 00:06

Assets\NavMesh.cs(13,9): error CS0019: Operator '-' cannot be applied to operands of type 'NavMeshAgent' and 'NavMeshAgent'

Ответить
Cendimix
Cendimix - 18.07.2023 06:39

The drop and jump isint working, what do i do?

Ответить
jud.Su.5 developer
jud.Su.5 developer - 16.07.2023 11:29

O my god so nice I don’t know that navmesh can jump form cube to another or drop thank you so much ❤

Ответить
The Ash Bot
The Ash Bot - 06.07.2023 18:59

Unity has changed Nav mesh. so do you plan on updating your course?

Ответить
DARTEKZ GAMEZ
DARTEKZ GAMEZ - 19.06.2023 16:18

why i dont have links shown for drop and jump?

Ответить
Kozmobot Games
Kozmobot Games - 09.06.2023 21:14

This Navigation window is labeled as Obsolete in Unity 2022. How can I do NavMesh in the latest version of Unity?

Ответить
alicivrilify
alicivrilify - 22.05.2023 21:50

I am working on an RTS, and thinking of using A* package from Assetstore. The dilemma is that should I use my own grid and things like breakpoints, or the NavMesh? NavMesh is much easier of course and fine-grained. But then my maps might get large. So, Code Monkey, do you have any idea if NavMesh is performant enough to be the goto tool in RTS games for characters walking around, chopping wood, etc. What is your experience?

Ответить
PKD Studio IT industry
PKD Studio IT industry - 17.05.2023 07:55

In my game to bake the terrain it is taking a time of 1and half hours

Ответить
Cale Zachary Ang
Cale Zachary Ang - 08.05.2023 07:54

Umm uhh my Agent is not walking

Ответить
ZarodGaming
ZarodGaming - 05.05.2023 23:32

i don't wanna be harsh,cuz i love unity, but the best Navmesh pro tip is to just ... DON'T ... just don't use it, lmao.

Ответить
ivan ivanov
ivan ivanov - 05.05.2023 21:59

Very, very, VERY nice video. Thank you. Now I know how to use nav mesh agent.

Ответить
Khalaf Nasirov
Khalaf Nasirov - 02.05.2023 18:02

Sorry but I think Unity marked this method as obsolete. Please upload new video that is related to new system. Thanks!

Ответить
Alltid Tratt
Alltid Tratt - 22.04.2023 09:08

Great and clear thank you 😊

Ответить
Aleksander Kamieński
Aleksander Kamieński - 18.04.2023 18:39

Is it possible to simulate a large number of people leaving a multi-story building using Unity navmesh pathfinding and probuilder?

Ответить
BenjiSonicMods
BenjiSonicMods - 07.04.2023 18:12

Great video ! But it feels like it's made for non-player characters only ?
Or is that also how I could make my player smoothly go up stairs ?

Ответить
aswhy
aswhy - 31.03.2023 14:08

its showing me the navigation but is not giving me the option to bake it, any ideas on what it requires in order to bake it?

Ответить
Florian Goossens
Florian Goossens - 29.03.2023 19:39

I've just watched the video to learn about Unity's navigation and I have a quick question: Currently i'm using a Rigidbody to move a character but I want it to navigate around different obstacles. Do I now use the NavMeshAgent to move the character instead of using the RigidBody?

Ответить
@RUDERUDYTUTORIALS
@RUDERUDYTUTORIALS - 22.03.2023 08:09

This video is really helpfull thank you very much awesome work.

Ответить
Astroboy Stan :v:
Astroboy Stan :v: - 21.03.2023 07:24

OH my gods thank you!! The old tuts i watched told me to pull up NavMeshSurfaceComponenet which I'm not sure exists anymore and I was about to have a breakdown because I didn't know how else to get the level working. THANK YOU!

Ответить
Pytchoun
Pytchoun - 19.03.2023 16:29

You didnt speak about nav mesh obstacle

Ответить
Xeratas
Xeratas - 07.03.2023 20:59

Is it good practice to make the player an agent in an isometric 3d game?

For example my Player has a CharacterController that handles the general movement of my character - for example it walks to the location where i clicked. But it will not avoid objects. Would it be good idea to make my player a navagent to have pathfinding? How do navagents interact with objects that already have a charactercontroller attached?

Ответить
Wort Wort Wort
Wort Wort Wort - 03.03.2023 11:24

I spent 3 days trying to understand how to move an enemy and was so satisfied, then I see this much MUCH easier method like bruh

Ответить
SHOT KILL
SHOT KILL - 26.02.2023 08:44

hello, please tell me why NavMesh UpdateUpAxis may not work?

Ответить
THE EXPERT IMPRESSIONIST
THE EXPERT IMPRESSIONIST - 23.02.2023 06:44

tab

Ответить
THE EXPERT IMPRESSIONIST
THE EXPERT IMPRESSIONIST - 23.02.2023 06:44

I don't have the bake table only navigation what do i do

Ответить
dafafd safdas
dafafd safdas - 25.01.2023 05:05

very useful,thank you!

Ответить
ZGI.
ZGI. - 24.10.2022 13:47

how do i make my ai look in the direction its moving

Ответить
KawaiiVietcong
KawaiiVietcong - 24.10.2022 07:07

I keep getting the error "SetDestination" can only be called...
I did all I could find on the Internet: i baked the terrain, i change the agent size to fit the collider and still its not working

Ответить
Trebor
Trebor - 17.10.2022 18:49

Would this NavMesh system work with a procedurally generated world? Is there a way to bake the spawning environment as it generates in-game?

Ответить
castlecoders ltd
castlecoders ltd - 30.09.2022 20:18

A good explanation. Thanks

Ответить
Very good
Very good - 22.09.2022 15:10

Very concise. This tool seems especially useful for prototyping, but feels a little inflexible when it comes to dynamic terrain.

Ответить
Random Video #666
Random Video #666 - 20.09.2022 23:42

HOW TO PREVENT OBJECT FROM TELEPORTING TO MESH WHEN IT PUSHED OUT?

Ответить
29VOID
29VOID - 09.09.2022 11:33

Amazing tutorial!

Ответить
Mustafa Yılmazer
Mustafa Yılmazer - 03.09.2022 01:29

hey there great tutorial. I am making a Tower Defense game with maze system. I have obstacles on towers, and enemies have navmesh agents. Whenever i build towers in runtime, my enemies got lagging like stopiing 0.5 sec and moving like ministun. Do you know why, can you help please?

Ответить
Loren Zo
Loren Zo - 30.08.2022 21:14

Whenever I hit play, I always get an error that says " "SetDestination" can only be called on an active agent that has been placed on a NavMesh."

Ответить
Dark_Templar42
Dark_Templar42 - 22.08.2022 04:41

keep get a "Set desintion error" I click bake and it does not work

Ответить
Echoss Here
Echoss Here - 07.08.2022 15:42

tysm, this is perfect for my rts game!

Ответить
Duck
Duck - 03.08.2022 20:55

thanks

Ответить
Salvador Martinez
Salvador Martinez - 31.07.2022 23:27

I select the obstacle, follow your steps, then bake and nothing happens, the blue area stays the same

Ответить
Zain Javaid
Zain Javaid - 24.07.2022 18:30

Thank You for awesome explaining!

Ответить
Nacho & Hotdawg
Nacho & Hotdawg - 19.07.2022 21:33

how to set the navmeshagent destination to an area rather than a Vector3?

Ответить
Zitong Wu
Zitong Wu - 06.07.2022 02:54

Thank you! All the essentials I was looking for.

Ответить
Supram Gaming
Supram Gaming - 21.06.2022 03:41

for some reason my guy just walks into a wall

Ответить
PolyHall
PolyHall - 20.06.2022 18:47

thank you for putting two 15 second unskippable ads

Ответить