How to make nav mesh AI climb walls

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hello today i'm going to show you how you can make your navmesh ai walk on walls in unity this is not something that can be done using the basic navigation but it is still pretty easy the first step you'll have to do is go to google and type in nav mesh components and that will the first link will take you to unity's github of which you'll download the assets or if you're working inside a different version of unity then you can go to nav mesh component releases and download the release that best fits what you like working in [Music] from there once you get everything installed then you can go back to your scene go to your platform and add a component of nav mesh surface from there you'll change to collect objects type from all to volume from here you'll get a volume cube that when you bake whatever is inside that volume is what will be your nav mesh now unless you're working in a scene made of nothing but squares you'll have to edit this simply go to edit volume and edit it like you would any other kind of box collider [Music] once you have your desired size you'll just hit bake again and voila now you have a platform that has a nav mesh surface on it whenever you move this platform it will take the nav match with it because it is already baked to make a wall you cannot simply make a cube and then stretch it out if we were to do that [Music] so now it will only bake the top using nav mesh surface is direction orientated so if you were to take this initial platform here copy and paste it and then rotate it 90 degrees [Music] and then better align it to the first one and then hit bake you can see that now we have a vertical and a horizontal nav mesh however there is a break in between these nav mesh it's very simple to get your ai to move from one nav mesh to another we simply have to click on one of the two platforms and go to nav mesh link from here you'll get these two yellow squares that you simply need to move into place put one on one nav mesh and keep the other on the initial lap mesh this will give you a bit of a bridge you'll want to widen the width [Music] and there we go so now because we have bi-directional marked our nav mesh ai can go from one to the other no issues if you were to select one of these yellow cubes and move it out of the way like behind then you can see that the link goes fully transparent but if you move it back then it turns a light blue light blue means that it is walkable [Music] so now we can see that our little nav mesh man can go from one to the other no issues and it's just that easy [Music] [Music] you
Info
Channel: Emorichii
Views: 7,108
Rating: undefined out of 5
Keywords:
Id: QCYBI6JaeIU
Channel Id: undefined
Length: 3min 48sec (228 seconds)
Published: Sun Nov 07 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.