Simple 2D Pathfinding In 4 Lines Of Code! | Unity Tutorial

Ойындар

Join the Discord (it's fun): / discord
GitHub Link: github.com/h8man/NavMeshPlus
Leave a Like and Subscribe to see more!
Follow my Twitch and join the stream party: / thezbilldyl
#Unity #Programming #GameDev

Пікірлер: 182

  • @SophieAnteboth
    @SophieAnteboth3 жыл бұрын

    Nice of the guards to let you record tutorials in prison.

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    I’m in a college dorm room haha!

  • @drakorez

    @drakorez

    3 жыл бұрын

    @@TheZBillDyl So he was right lol

  • @CallMeAwsum
    @CallMeAwsum3 жыл бұрын

    Thank you SO much for creating the little review portion for people who haven't made tilemaps before. As a new unity creator, I found that very helpful

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    You’re very welcome!!

  • @fredator88
    @fredator883 жыл бұрын

    This is exactly what I was looking for. Thanks a lot!

  • @satansconfessionbooth1907
    @satansconfessionbooth19073 жыл бұрын

    This tutorial saved my life, thank you. This saves me the anguish of having to learn A* math to write my own pathfinding system, pay for a commercially made one, or try to wiggle my way around free versions that don't take agent radius into account. Now I can actually get back to the rest of the game mechanics after a week of trying to get a dude to walk around a fence.

  • @lukasvolcik5109

    @lukasvolcik5109

    2 жыл бұрын

    Truuue. Why is it easier to do pathfinding in 3D rather than in 2D lol?

  • @turoreal
    @turoreal3 жыл бұрын

    Thank you for the assurance bro, really needed it.

  • @soyuma
    @soyuma2 жыл бұрын

    Normally I wouldn't comment on tutorials like this but man this srsly helped me out thank you so much!

  • @moisesg9472
    @moisesg94722 жыл бұрын

    It was just what I was looking for, short and a good explanation.

  • @DooMprogrammer
    @DooMprogrammer3 жыл бұрын

    Wow! Just what I needed. Thank you man, you're a savior.

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    You’re welcome :)

  • @TheAchuenas
    @TheAchuenas3 жыл бұрын

    Great content, helped me a lot, keep it up!

  • @NewEonOrchestra
    @NewEonOrchestra2 жыл бұрын

    Thanks for this video! Throughout the years I've implemented A* myself, then years later I just pulled in some non-Unity-specific pathfinding libraries. But once this is set up it's much simpler and hands-off, and I'm hoping it it's as performant as the 3d nav mesh tools as well.

  • @elmetiu
    @elmetiu Жыл бұрын

    Thank you i was making a game jam and it was all doing well, i needed to do a navmesh but I spent hours trying to figure out how i can do this, i tried brackeys navmesh, but the agent was stupid it could pass through objects and with that tutorial you saved my life mate👊

  • @joshuacantie2007
    @joshuacantie20072 жыл бұрын

    Thanks for the video! Is there a way to change the Min Region Area on this 2D NavMesh surface? I tried going to Window > AI > Navigation and changing it there (like with a 3D NavMesh), but it didn't seem to update the 2D one in my scene when I re-baked.

  • @carlosalmeyda8125
    @carlosalmeyda81253 жыл бұрын

    Great Man!!! just what i need!

  • @wamballa5948
    @wamballa59482 жыл бұрын

    Excellent work

  • @SeraphimEnjoyer
    @SeraphimEnjoyer3 жыл бұрын

    i would enjoy seeing more of these unity tutorials. Im trying to make a game in Unity for my CS class and i have no idea what im doing so more vids like this would be much appreciated

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    Do not worry! I will continue to make these occasionally! Whenever I can think of something to make a tutorial on.

  • @gamerninjask6746

    @gamerninjask6746

    3 жыл бұрын

    @@TheZBillDyl i need help how i can make bot detect an gameobject and not only tilemap

  • @piranhapants7290

    @piranhapants7290

    Жыл бұрын

    @@gamerninjask6746 1 year later- add the object to the same layer / tag as tile map

  • @unitygamedev2326
    @unitygamedev23262 жыл бұрын

    you made that really easy , thank you

  • @x364
    @x364 Жыл бұрын

    Very helpful! Thank you!

  • @jaydinlee9699
    @jaydinlee96993 жыл бұрын

    Anyone know what the asset pack is for the environment that was on the thumbnail for the video?

  • @c4nnyiyim169
    @c4nnyiyim169 Жыл бұрын

    Does it work on normal 2d view instad of top 2d view ?

  • @christo-j5507
    @christo-j55073 жыл бұрын

    It's very useful! Thank you!!!!

  • @maxg5196
    @maxg5196 Жыл бұрын

    Ok this is cool. Can this astar pathfinding system work for obstacles that are not based off of squares or a tilemap? Like polygon or circle obstacles? So the NavMeshModifier, if I put that on non-tilemap object, can I define a shape on that object to apply the non-walkable property too, if that makes sense?

  • @luisgonzalez5374
    @luisgonzalez53742 жыл бұрын

    can you bake this to game objects or does it have to be tiles??

  • @hugimi3807
    @hugimi38073 жыл бұрын

    this is a very useful video dude

  • @pheebster
    @pheebster Жыл бұрын

    Thank you!!! You are another person to put into "Special Thanks" in credits of my game if i ever gonna release it 😭

  • @Vasquez2701
    @Vasquez2701 Жыл бұрын

    Nice video! I just found difficult the Tile Palette since I've never used it before and it was covered with yourself, but great video overall!

  • @keesbrown7230
    @keesbrown7230 Жыл бұрын

    dam this helped thx man!

  • @jamesevans6855
    @jamesevans68552 жыл бұрын

    Hey! Great video! I'm having trouble setting up sprites etc. (Around 4:15) Is there a video you can recommend? I am quite new to Unity but I have coursework due in January 😅

  • @Sway55
    @Sway55 Жыл бұрын

    Amazing vid thank you so much

  • @DavisByrd
    @DavisByrd Жыл бұрын

    When I hit bake, my map did not highlight at all. I followed the steps exactly but still didn't get any indication that it worked.

  • @chookki

    @chookki

    2 күн бұрын

    mine too. I even followed the READ Me, same thing.

  • @adriansilva5490
    @adriansilva54903 жыл бұрын

    what do i do to put an animation on all directions when the enemy moves? i have all animations created in a blend tree

  • @TheDynamicDudes

    @TheDynamicDudes

    3 жыл бұрын

    did u ever figure out how to do this?

  • @vinhlam1401
    @vinhlam1401 Жыл бұрын

    thank you it take me a lot of time !!

  • @beansheeran7322
    @beansheeran73222 жыл бұрын

    how would you make the player rotate like navmesh?

  • @RubyInferno
    @RubyInferno3 жыл бұрын

    Do you need a "Walkable Ground" in order for the agent to move on it? I basically have a maze (made of tiles) and that will be "Not Walkable" but do not have anything within the maze, the agent should be able to walk within the walls of the maze, right?

  • @RubyInferno

    @RubyInferno

    3 жыл бұрын

    Update: I made it work, boy was that a mess or what...I had my Tilemaps all messed up, it got super tricky because I pasted my version of "Wall tiles" on the "Space (my version of "Ground")" tilemap...which really confused the heck out of me since the monster kept going right through it. I am building PacMan from scratch & now I have managed to get it working - the monster traverses in every nook and cranny like a boss! There was another really "epic" problem....Since its PacMan, my maze needs to only allow linear movement to the monsters & the gap between maze walls was too less for the algorithm to detect movable paths...until I discovered the nifty attribute inside the "Advanced" settings of the NavMeshModifier which allows you to change voxel size and make it super accurate at the cost of higher processing power - boy did that work like a charm or what! Blinky now traverses even the smallest gaps with ease, thank you so much for this! :D Sorry for the long post. xD

  • @guildmasterhumongous9471
    @guildmasterhumongous94713 жыл бұрын

    Is there a way to simply get the direction vector the pathfinding thinks the object should move in so you can manipulate it for more specific behaviors (like implementing pushing from other objects, changing speed, etc.)

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    You should be able to just add a collider to the agent and the agents should no longer phase into each other. As for specific behaviors, im sure theres a way. I think you can access specific nodes in the path that it calculated so you could calculate the direction vector from that

  • @cloudaken8270
    @cloudaken8270 Жыл бұрын

    Is there a way to check to see when the targeted destination is accutlly meet? So that the target can change or a set of code runs when they get to their destination?

  • @TheZBillDyl

    @TheZBillDyl

    Жыл бұрын

    Yes of course! Vector3.Distance is a function you can use to check when the target reaches its destination. Just use a threshold variable and bam. You got your functionality!

  • @Someguy-uh4lv
    @Someguy-uh4lv3 жыл бұрын

    very helpful, thank you

  • @HerrBardo
    @HerrBardo3 жыл бұрын

    This a great video, you are making a great service TO THE WORLD.

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    My only complaint is the beginning of the video has such poor video quality :/

  • @bserre5647
    @bserre56473 жыл бұрын

    Nice one dude

  • @ozguroz5340
    @ozguroz53403 жыл бұрын

    thank you so much man , i will be really helpfull

  • @roboticol6280

    @roboticol6280

    3 жыл бұрын

    "i will"?

  • @carlabalos3884
    @carlabalos38842 жыл бұрын

    Thanks man!

  • @NOSFYT
    @NOSFYT3 жыл бұрын

    Thanks for the video, i was trying to use A* for a while, and it was giving me problems with every single change i made

  • @sulkingcrow7426
    @sulkingcrow74263 жыл бұрын

    For anyone else who might have the problem I did, where you can't see the NavMesh after you bake it, in the 'Scene' window, in the bottom right change 'TileMap' to 'Focus On' Grid. But it's good tutorial, thanks!

  • @katal_do301

    @katal_do301

    3 жыл бұрын

    There's nothing in the bottom right part of the scene window.

  • @sulkingcrow7426

    @sulkingcrow7426

    3 жыл бұрын

    @@katal_do301 You can get the window by opening a Tile Palette window (Window > 2D > Tile Palette) and then the 'Tilemap Focus Filter' window should open bottom right of your scene

  • @katal_do301

    @katal_do301

    3 жыл бұрын

    @@sulkingcrow7426 Thanks a lot, have a good day.

  • @RubyInferno
    @RubyInferno3 жыл бұрын

    How do you attach the agent to a 2D sprite via code instead of the editor? I have a 2D game object I'd like the agent be attached to. Thanks a lot!

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    Should be able to utilize the “AddComponent” method? Perhaps?

  • @RubyInferno

    @RubyInferno

    3 жыл бұрын

    @@TheZBillDyl Yes I tried that but I am not sure where the "name" of the particular agent goes, for example I declare an agent: NavMeshAgent SomeAgent; Attach it to the object. SomeObject.AddComponent(); How do I give the name? (I tried putting it as a parameter in the brackets after but that doesn't work. Thanks!

  • @grizzly8393
    @grizzly83932 жыл бұрын

    I don't know if I will get a reply to this but I want a prefab of an enemy AI to pathfind to my character? But when I make the ai a prefab its says that it can not convert transform to a game object. Is there any way to do this that allows the ai to target the player with somehting like following the player's tag?

  • @TheZBillDyl

    @TheZBillDyl

    2 жыл бұрын

    Yes! I think your issue is something to do with the way ur instantiating the prefab. If I were to make a prefab enemy, Id make it so a Game Manager (or an AI Spawner) spawns the Ai. The AI, in its own movement script, finds the player by its tag and gets it's transform. That transform is then made as the target! (Thats a rough idea of how id do it)

  • @BongLeeBong
    @BongLeeBong2 жыл бұрын

    Absolute life saver. You desver more likes and views than this. Thank you SO much.

  • @guildmasterhumongous9471
    @guildmasterhumongous94713 жыл бұрын

    Interesting, what about other features like having multiple objects avoiding each other as they move?

  • @muradbunyatov5571
    @muradbunyatov55712 жыл бұрын

    THANK YOU A LOT!!!😆😆😆

  • @Alfur372
    @Alfur3723 жыл бұрын

    Great video but how to make rotate to move direction ? Sorry for my bad english.

  • @pascalrenner4320
    @pascalrenner43203 жыл бұрын

    Thanks for the tutorial! FYI, you can even get the reference of the NavMeshSurface2d object and invoke BuildNavMesh on it to trigger the baking via code. Might help for dynamic maps?

  • @RubyInferno

    @RubyInferno

    3 жыл бұрын

    Mind sharing the lines of code for baking via scripts? That would br amazing!

  • @hrishikeshgarud7177

    @hrishikeshgarud7177

    2 жыл бұрын

    @@RubyInferno public NavMeshSurface2d surface2D; surface2D.BuildNavMesh();

  • @animemazegaming
    @animemazegaming Жыл бұрын

    If you are looking for a way to implement this on a 2d game object and cannot see navmesh baked area then place your gameobject as a child of navmesh gameobject and select children in collect objects of navmesh surface 2d it will bake properly.

  • @nachohotdawg5634
    @nachohotdawg56342 жыл бұрын

    At first it didn't really work well for me, and so I rescaled my grid to 1,1,1 and now it works fine!

  • @brunoportorj
    @brunoportorj3 жыл бұрын

    Thanks man =D

  • @snp645
    @snp6452 жыл бұрын

    Thanks for this!! it totally solved my issue! i could make the player move on mouse click before, but it wasnt really recognising the NavMesh and just going through the walls :/ Just a quick question: why exactly did we make an empty game object at the end to feed into the target value?

  • @TheZBillDyl

    @TheZBillDyl

    2 жыл бұрын

    To give the agent a place to go! :D

  • @moorthirayadurai
    @moorthirayadurai Жыл бұрын

    i cant find NavMeshCollecSources2d script in github file, how to find this?

  • @bloodiedhand1230
    @bloodiedhand1230 Жыл бұрын

    Can the wall update during run time by using this method? Anyway thanks for this video.

  • @GenerallyBananas
    @GenerallyBananas3 жыл бұрын

    I've been having an issue, I wonder if anyone else has encountered it. When I enable the Nav Mesh Agent on a game object it's sprite becomes invisible in the game view, but not in the scene view. If I turn the Nav Mesh Agent off it becomes visible in-game again. Any idea what's causing this? I've tried messing with the Sprite Renderer sorting layers but I'm stumped

  • @justinlindenthaler2491

    @justinlindenthaler2491

    3 жыл бұрын

    having the same issue on my end!

  • @GenerallyBananas

    @GenerallyBananas

    3 жыл бұрын

    @@justinlindenthaler2491 unfortunately I never found a fix, but it must be caused by some setting somewhere because I started a new project and haven't had the issue since

  • @JoaoGoncalves-np6su

    @JoaoGoncalves-np6su

    3 жыл бұрын

    @@GenerallyBananas if you're making a 2D game make sure that the z component on the transform is not too far away from the z component of the active camera, that sometimes happens to me and the sprites become invisible

  • @yotonking2831

    @yotonking2831

    2 жыл бұрын

    It's because you put -90 in the navmesh transform. Your sprite also changes rotation to -90 and makes it seem invisible. Remember to change agent.updaterotation = false

  • @GenerallyBananas

    @GenerallyBananas

    2 жыл бұрын

    @@yotonking2831 Ooooh! I think that's it!!! I ultimately fixed it by just redoing from scratch, but this is great to know for future reference, thank you!

  • @thomascircle245
    @thomascircle2452 жыл бұрын

    Sorry to everyone who gets this a lot, but is there a way to decrease the size of the margins between the baked navmesh and the walls? It sort of seems like Override Voxel Size is the place to do this but it's not really clear how it works.

  • @TheZBillDyl

    @TheZBillDyl

    2 жыл бұрын

    I think it’s the size of the agents? I think? Sorry it’s been a long time. Good luck though!

  • @nomilon3770
    @nomilon37702 жыл бұрын

    Thanks a lot

  • @richg8097
    @richg80973 жыл бұрын

    Hello, hey when I put a "prefap" of the enemy, a radius is created that makes the enemies are at a specific distance, how can I solve it?

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    Im not sure im understanding the question? Do you mean a stopping distance?

  • @richg8097

    @richg8097

    3 жыл бұрын

    @@TheZBillDyl It seems to me that it is something of the radius in which the enemy can approach the player

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    Im still a bit unsure of what you’re asking. What are you trying to solve?

  • @richg8097

    @richg8097

    3 жыл бұрын

    @@TheZBillDyl Don't worry, I already solved it

  • @Simo-un2zu
    @Simo-un2zu Жыл бұрын

    Did anyone get this to work with prefabs? When my Enemy Spawner creates a new enemy, they just kind of sit there and don't pursue the player, although the initial game object one does. It did work in my non navmesh version of code.

  • @Simo-un2zu

    @Simo-un2zu

    Жыл бұрын

    Nvm, this worked in void start: target = GameObject.FindGameObjectWithTag("Player").transform; with Player being the tag set on my player object. Now my enemy spawner makes the enemies at certain intervals, and they follow the player using the navmesh AI. :)

  • @kiatu2352
    @kiatu2352 Жыл бұрын

    The tutorial wont work, I mean i know its been 2 years but is there another way to do this with changes they made

  • @cyberdrunkdev5256
    @cyberdrunkdev5256 Жыл бұрын

    Oh brother, been fighting with this path finding for a while already. Giving me error "showNavigation is no longer supported and will be removed' :(

  • @fluorescente
    @fluorescente Жыл бұрын

    I'm wondering if using tilemap is necessary or can I just use sprites

  • @TheZBillDyl

    @TheZBillDyl

    Жыл бұрын

    I've gotten this question a lot. Honestly, I have no idea. This is an older video so i dont remember everything. you could place your image into the tilemap as a tile then increase the size of the tile on the tile grid. That should work?

  • @Shringyshrong
    @Shringyshrong3 жыл бұрын

    Hey man, thanks for the video. How would I get this to work with a randomly generated 2D maze? I need to find a way to bake my nav mesh at runtime but cannot for the life of me find out how to do it.

  • @TheZBillDyl

    @TheZBillDyl

    2 жыл бұрын

    Sorry for being a year late but, there IS runtime baking available. Check out the GitHub link in the description and near the end of the documentation there’s a section on runtime baking.

  • @Shringyshrong

    @Shringyshrong

    2 жыл бұрын

    @@TheZBillDyl hey man, thanks for the reply any how! I actually managed to figure it out by implementing my own A* path finding algorithm that would constantly update at run time :) really good to know that there is runtime baking tho!

  • @darkeye4501

    @darkeye4501

    2 ай бұрын

    @@TheZBillDyl I'm digging up the thread after another 2 years. Yes, there is a section in the documentation on how to trigger navmesh generation in runtime, but I don't seem to understand how to do it and I urgently need an explanation.

  • @ATPokerATPoker-dp4ex
    @ATPokerATPoker-dp4ex10 ай бұрын

    Intro was great lol

  • @jhonathangalhardo149
    @jhonathangalhardo1493 жыл бұрын

    Thank you so muchh

  • @rohandas3718
    @rohandas37183 жыл бұрын

    U r just creating one empty game object and move it manually and enemy is just following the player.. what if i want the player like i will touch and the player will move where i touch how to do it on nevmesh?

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    You would just move the position of the empty game object (the target) to where the player touched!

  • @Xiaolin2
    @Xiaolin23 жыл бұрын

    Thanks!!

  • @Dbap1997
    @Dbap1997 Жыл бұрын

    is there anyway to make them move around the map randomly, until the player is a certain distance away?

  • @TheZBillDyl

    @TheZBillDyl

    Жыл бұрын

    Of course! Simply move a target transform to a random location. It can be invisible. This is somewhat how most games do it tbh. (Granted a bit more complex)

  • @Dbap1997

    @Dbap1997

    Жыл бұрын

    @@TheZBillDyl am i able to have multiple nav mesh in one scene ?

  • @ariyabayat5292
    @ariyabayat52922 жыл бұрын

    Does this work without tilemaps? So with separate objects with sprites and 2d colliders?

  • @neobichniymarketplace

    @neobichniymarketplace

    Жыл бұрын

    Good afternoon, did you find out the answer?

  • @DragonByte79
    @DragonByte792 жыл бұрын

    What software do you use for that awesome windows desktop background?

  • @TheZBillDyl

    @TheZBillDyl

    2 жыл бұрын

    Wallpaper Engine

  • @randomgamer203
    @randomgamer2032 жыл бұрын

    it doesnot work for me. navmesh tells me that i need atleast one tilemap... which i definitely have more than one.

  • @tripw7736
    @tripw77363 жыл бұрын

    THE GREATEST:DDD

  • @tripw7736

    @tripw7736

    3 жыл бұрын

    BRO DO U HAVE A TIPJAR???? I WILL GIVE YOU MONEY FOR THIS YOU MARVELOUS HUMAN:DDDDDD

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    Just sub to me and tht counts imo haha. You’re welcome!!!

  • @tripw7736

    @tripw7736

    3 жыл бұрын

    @@TheZBillDyl DONE BRO🤩🤜🤛💪💪💪💪

  • @FonzieKree
    @FonzieKree3 жыл бұрын

    I started with unity 3 years ago. Then I tried to make own assets in Blender and fell in love with 3D modelling and Pixel art - let's say I never touched my game again but I have assets for years now :'(

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    Yea. A good thing to get in the habit of is understanding the scale of a project youre capable of doing!

  • @FonzieKree

    @FonzieKree

    3 жыл бұрын

    @@TheZBillDyl more like I kept learning blender until I became 3D modeller instead of indie dev - my original purpose. No regarrets tho! I enjoy drawing in Blender and Aseprite

  • Жыл бұрын

    Navmesh surface 2d and navmesh agent haven't exit anymore

  • @fielddark4196
    @fielddark41963 жыл бұрын

    VC works what you are doing in the inspector with video above

  • @XAyaDubX
    @XAyaDubX Жыл бұрын

    Can you use this for free in any game without legal issues? Like if i sell a game

  • @TheZBillDyl

    @TheZBillDyl

    Жыл бұрын

    I believe so. You would have to check the license on github

  • @rendered3090
    @rendered30903 жыл бұрын

    Can I bake the navmesh in the runtime ?

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    U should be able to? I think theres a method to call on it someplace

  • @ZEN467
    @ZEN4673 жыл бұрын

    thanks

  • @jonathanbarone1257
    @jonathanbarone12573 жыл бұрын

    Ok... This work for tilemaps, but, How to make it work for independent game objects?

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    I'm unsure but, if you're doing 2D you more than likely should be using tile palettes. Can you explain what you're doing? I can try to help!

  • @jonathanbarone1257

    @jonathanbarone1257

    3 жыл бұрын

    @@TheZBillDyl Of Course! I am trying to generate a navmesh around the prefabs like trees, etc, to make npc pathfinding. I still can't do it

  • @gamerninjask6746
    @gamerninjask67463 жыл бұрын

    Thanks i need pathfinding for my bots in my battle royale Thanks so muck bro

  • @lejionnaire6742
    @lejionnaire67423 жыл бұрын

    pog

  • @youngjepark5835
    @youngjepark58353 жыл бұрын

    astar pathfinding was not working on 2020.2.. so thanks !

  • @MOHAMEDHAMDY-qs4fq
    @MOHAMEDHAMDY-qs4fq3 жыл бұрын

    can u tell me how i can move it by mouse ckick

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    Ill give you a hint. Utilize the function Camera.main.ScreenToWorldPoint(Input.mousePosition);

  • @GreaterLemon
    @GreaterLemon Жыл бұрын

    I'm assuming this doesn't work with 2D rigidbodies?

  • @TheZBillDyl

    @TheZBillDyl

    Жыл бұрын

    Ummm it should? Just make sure the gravity is turned off? I am 95% sure this would work.

  • @nachohotdawg5634
    @nachohotdawg56342 жыл бұрын

    thanks, but man change your webcam pos plz :D

  • @taruscristian7601
    @taruscristian76019 ай бұрын

    i cant find NavMeshSurface2d component(5:14) ((((((((((

  • @user-yx5bf7dp4s

    @user-yx5bf7dp4s

    8 ай бұрын

    It has changed to Navigation Surface.

  • @redoctober2088
    @redoctober2088 Жыл бұрын

    I can't get navmeshsurface component

  • @NoShell

    @NoShell

    Жыл бұрын

    Some things changed in the git Project just look at the this is the official description now.

  • @redoctober2088

    @redoctober2088

    Жыл бұрын

    @@NoShell yes figured it out, but thanks anyway

  • @gustavosalmeron2013
    @gustavosalmeron20133 жыл бұрын

    can it avoid moving objects?

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    Should be able to?

  • @gustavosalmeron2013

    @gustavosalmeron2013

    3 жыл бұрын

    @@TheZBillDyl Yes, I am programming a 2D top down game with moving obstacles. I am using A* with a grid, but SOME objects aren't the exact size of a tile.If a character gets inside the unwalkable area, he doesn't know what to do. I need a system where there are multiple characters with rigidbody2D colliders walking around and they can see in real time where the objects are moving, to avoid for example, 2 enemies trying to walk the same route, but in opposite ways, and get stuck.

  • @blackdolphin4362
    @blackdolphin43622 жыл бұрын

    hello, can we make games with this plugin and earn commercial income?

  • @TheZBillDyl

    @TheZBillDyl

    2 жыл бұрын

    Hello, The plug-in uses Unity’s built-in navmesh but, slightly modifies it. With that said, I double checked the GitHub page and there’s no mention of a license so I believe it’s open source and free to use because it’s still using Unity’s technology! So in other words: you’re good to go!

  • @Nugg3tNugg3t
    @Nugg3tNugg3t2 жыл бұрын

    why does it turn so slowly

  • @grant3044
    @grant30442 жыл бұрын

    Thanks for the tip. Are you in the Navy? The blue shirt, haircut, the beds, and the walls makes me assume so. Either way, good on you learning game dev.

  • @TheZBillDyl

    @TheZBillDyl

    2 жыл бұрын

    Haha! No, in this video I was in my college dorm! ❤️ Don’t worry most ppl think I’m in prison so I’ll take this view any day 😂

  • @grant3044

    @grant3044

    2 жыл бұрын

    @@TheZBillDyl Haha XD , well aren't I sheepish for assuming; jk :P . (I should've known, the corners of the sheets weren't folded to regulation standards haha) Well you'd make a fine sailor either way. Again, double thanks for the help. Goodluck with your gamedev.

  • @codeninja707
    @codeninja7073 жыл бұрын

    What can I say. I like Knobs.

  • @rootbindev
    @rootbindev11 ай бұрын

    Nice tutorial, I like it! There are some updates so following this wont work 100%, I've created a new tutorial on my channel to follow along 2023 for this.

  • @damiantalaga4404
    @damiantalaga4404 Жыл бұрын

    Please set your web cam view somewhere else, not in the inspector

  • @TheZBillDyl

    @TheZBillDyl

    Жыл бұрын

    I totally agree. Thank you for the heads up

  • @samet4900
    @samet4900 Жыл бұрын

    helal lan (turkish god bless you)

  • @maxfun6797
    @maxfun67972 жыл бұрын

    This is pretty good stuff from a guy in jail

  • @TheZBillDyl

    @TheZBillDyl

    2 жыл бұрын

    its my college dorm....... but ur right its basically jail

  • @iR3dy
    @iR3dy3 жыл бұрын

    my enemy hovers

  • @danielconde001
    @danielconde0013 жыл бұрын

    where did you get that wallpaper? its so cool :o

  • @TheZBillDyl

    @TheZBillDyl

    3 жыл бұрын

    I got it from Wallpaper Engine!! Its $5 on steam but, it’s super cool!

  • @Specstone
    @Specstone11 ай бұрын

    omg bro im actually shocked how well this is working with barely any work! the only problem i had was that they changed some of the component names but the github talks about it

  • @gamecube28

    @gamecube28

    7 ай бұрын

    What is the nav mesh agent called instead

Келесі