Traffic AI In Unity | Simple Traffic System

Поделиться
HTML-код
  • Опубликовано: 1 янв 2025

Комментарии • 32

  • @Daniel-ed7lt
    @Daniel-ed7lt 3 года назад +15

    The way you have it set up right now, index will equal Waypoints.Length at some point, which will break line 38 and 47 before index is reset to 0.
    To make it work, all you would have to do is replace line 39 with the following:
    if (index + 1 != Waypoints.Length)

    • @jjfgh12
      @jjfgh12 3 года назад +3

      Yes! this is what I needed, kept recieving an IndexOutOfRangeException.

    • @rutherxmen
      @rutherxmen Год назад +3

      THANKYOU SOO MUCH DUDE, IT IS WORKING NOW.

    • @olivier36fr
      @olivier36fr 11 месяцев назад +1

      THX TO YOU

    • @CentralGameplays
      @CentralGameplays 10 месяцев назад +2

      Nice! Now the character is looping! Thank you!

    • @mutlugameofhalit
      @mutlugameofhalit 8 месяцев назад

      where is the problem here?

  • @Giddy_FXM
    @Giddy_FXM 3 года назад +2

    Thanks mate. I'm new into game dev. But atleast I have managed to get your channel early. Now am learning things I couldn't afford for free. Thanks again 🙏🙏

    • @navdeeppadda5881
      @navdeeppadda5881 3 года назад

      Hey if u new I recommend a few yt channels
      Brackets
      Speed tutor
      Coding Money
      How to do

    • @Giddy_FXM
      @Giddy_FXM 3 года назад

      @@navdeeppadda5881 I found brackeys instead. Pretty good too. Thanks for all these

    • @mutlugameofhalit
      @mutlugameofhalit 8 месяцев назад +1

      @@navdeeppadda5881 *Code Monkey

  • @IronPaul
    @IronPaul 3 года назад +2

    pablos lab, nice choice pablo. There will be more experiments now)

  • @nicolasportu
    @nicolasportu 2 года назад +2

    Outstanding! How to add a different animation in every path point? Thanks
    How to know the current path point of a nav agent?

  • @yousufjamal3553
    @yousufjamal3553 3 года назад +1

    Great video as always

  • @ZenoFar853
    @ZenoFar853 2 года назад

    Can u SIr add crowed system with rotation of character be closer each other and decided the road destination by numbers of characters every road have?

  • @jhonyfir
    @jhonyfir 3 года назад

    You are amazing broo thx for the tutorial👏🔥

  • @ROXPLAYZONE
    @ROXPLAYZONE 3 года назад

    great video really helpful

  • @michaelp8376
    @michaelp8376 Год назад

    This is fantastic info. Thank you!

  • @__Rizzler__
    @__Rizzler__ 3 года назад

    Thanks pablo

  • @LunarWanderer-zk4sj
    @LunarWanderer-zk4sj 5 месяцев назад

    can someone give me a working copy of the code? I can't get mine to work.

  • @generalbleedous3212
    @generalbleedous3212 3 года назад +1

    neat video my friend as always i have a request for you can you please do a star wars themed game mini series where u explain how to assign characters their animations and dialogues i can provide assets if needed tho it shouldnt be a problem thanks my friend as always even if u read it

  • @mrCHRONIC128
    @mrCHRONIC128 3 года назад

    'Paolo labs', now that is a better choice for your name as searching for Pablo on youtube used to give me plenty other pablos before it shows me yours

    • @pabloslab
      @pabloslab  3 года назад

      and it shows as the first result too

  • @Injabsful
    @Injabsful 2 года назад

    why not make it on random point on nav mesh ?

  • @ThatLazyGameDev
    @ThatLazyGameDev 2 года назад

    My NavMesh isn't visible after baked,l

  • @mutlugameofhalit
    @mutlugameofhalit 8 месяцев назад +1

    Could ve have scripts and project pls? Ty 🤍

  • @Serpent.Xenospire
    @Serpent.Xenospire 2 года назад

    We want more

  • @parthacodes5893
    @parthacodes5893 Год назад

    Actually i understood everything in my game esiest part was cofing according the game script the like key 🗝️ sysytem doors movement of character i got issue in the traffic system and car movement car enter exit was also easy also all the other thing in the game story i only coded but some things are hard to understand and do alone and i had doubt i. These two only all other i only did by my own knowledge and logic as because of python i easly implement same thing in c sharp just changing the syntax and stuff i know logic and coding but not these two thing car movemnt and traffic and in my huge game the story is huge and coding for it is also huge including guns firing and all i know it and i only cpde it i just see for animation 😅 so i hv doubt in the two stuff in last was the car movement and traffic system so i saw two vedios and did it all other coding by me and little bit in online if some times doesn't work like i forgot 1 logic for pickup sysytem so i saw some veduos got what was wrong then knew what to do just holding the item untaging it so that no one can see and the second one will places in the second place and by clicking in the button and trigger in come to the hand

  • @DreekL1234
    @DreekL1234 3 года назад

    nice!

  • @locuragames1419
    @locuragames1419 2 года назад

    giveme you code please