Unity | How to make a simple AI Navigation System - 2023

Поділитися
Вставка
  • Опубліковано 24 лис 2024

КОМЕНТАРІ • 32

  • @raxacoricofallapatorius8484
    @raxacoricofallapatorius8484 9 місяців тому +5

    turn this into a series. more videos means more traffic, means more awareness of your excellent work.

    • @DarkWing.Studio
      @DarkWing.Studio  9 місяців тому

      Thank you very much, I was also thinking to make more AI related video so I might just turn this into a series. Thanks for the feedback!

  • @PierreHaou
    @PierreHaou 8 місяців тому +1

    best tutorial ive seen on ai nav in unity, well done sir 🙏

    • @DarkWing.Studio
      @DarkWing.Studio  8 місяців тому

      Thank you so much, I am glad you found this helpful!

  • @juleswombat5309
    @juleswombat5309 10 місяців тому +2

    Awesome.
    I would like to know a little more on how to implement Nav paths, that represent AI Agents using going up and down lifts/elevators. I guess the Links method would work. But I would have to intercept the Agent, entering into the lift, stop the Agent, Animate the Lift an Agent as lift Manoeuvre, then enbable the Nav Agent again.

    • @DarkWing.Studio
      @DarkWing.Studio  10 місяців тому +1

      Maybe you could try using a coroutine so while the lift interaction is happening the agent would be stopped and it will be enabled again once the coroutine is finished

    • @a3dadventure79
      @a3dadventure79 10 місяців тому +2

      i use a Rigidbody as well as an agent, and i handle switching from different "states", one where the navmesh agent and it's appropriate operations run, and then another one where i focus on applying physics and where the agent is off. i think it's a really good learning opportunity to be able to be flexible on how the ai character is handled or behaves. you could factorize and modularize the code so different agents could interact with different objects that the navmesh does not handle, such as lifts and other gameobject behavior you design. wishing you the best!

  • @MrRikunaru
    @MrRikunaru Рік тому +2

    Nicely quick compact and still extensive! Very well done - thanks for this! Perfect for my next prototype :D

  • @jugglingjoestudios3338
    @jugglingjoestudios3338 6 місяців тому +2

    v helpful - thank you! :)

  • @citycritteradventures7427
    @citycritteradventures7427 10 місяців тому +1

    Really great job. Clear, and powerful. You also introduced navmesh offlinks, which is something I’m trying to code to my ai characters (jump). All in all, keep these coming. Wishing you all the best. Liked and subd

    • @DarkWing.Studio
      @DarkWing.Studio  10 місяців тому +1

      Thank you so much, I really appreciate it!

  • @farheenirfan1124
    @farheenirfan1124 2 місяці тому

    Changed my life

  • @josueserrano6180
    @josueserrano6180 4 місяці тому

    thank youuuu

  • @rodrigoaltamiranda8949
    @rodrigoaltamiranda8949 4 місяці тому

    thanks very useful

  • @bpro5848
    @bpro5848 Рік тому +1

    Thank you!!!

  • @techrobotics5755
    @techrobotics5755 2 місяці тому

    The best❤

  • @trix_dev6088
    @trix_dev6088 5 місяців тому +2

    PLEASE MAKE SURE YOUR GIZMOS ARE ON!!!! If when baking your nav mesh the blue overlay doesn't show up, that's likely why

  • @SamiKhan-zt9yo
    @SamiKhan-zt9yo 5 місяців тому +1

    Please make a 3D school navigation system

  • @AstralNostalgia
    @AstralNostalgia 8 місяців тому +1

    I do not know how to deal tdamage betwenn 2 entitites when I use this navmesh, any idea? my entity use tod have childs inside the parents, and only the parents have the navemshh and the colliders.

    • @DarkWing.Studio
      @DarkWing.Studio  8 місяців тому

      Are you referring to damage when the entities collide?

    • @AstralNostalgia
      @AstralNostalgia 8 місяців тому +1

      @@DarkWing.Studio yes for any reason when I use navemesh I can not get collisions ...

    • @DarkWing.Studio
      @DarkWing.Studio  8 місяців тому

      @@AstralNostalgia make sure that both objects have a collider and at least one of the entities must have a rigidbody component. If you want to use the OnTriggerEnter function, make sure that at least one of the objects have the collider set to Is Trigger.

  • @Jayrajdebnath
    @Jayrajdebnath 8 місяців тому

    blue area is not showing plz help

    • @DarkWing.Studio
      @DarkWing.Studio  8 місяців тому

      Hmm, make sure that you have set the area to walkable in the NavMeshSurface component and also check out the object collection to see if it takes everything you want into consideration.

    • @eqanmustafa3925
      @eqanmustafa3925 3 місяці тому +1

      turn on the gizmos & show nav mesh.

  • @Mxnty24
    @Mxnty24 2 місяці тому

    where tf u get the ai nav

  • @nopepsi206
    @nopepsi206 8 місяців тому +1

    cool but what about dynamic obstacles that are moving? how can you bake the surface then dynamically all the time the object moves

    • @DarkWing.Studio
      @DarkWing.Studio  8 місяців тому

      You can use the Carve option in the NavMesh Obstacle Component