Obstacle Avoidance - Delivery Drone with Finite State Machines in Roblox #2

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • In the second installment of making a drone as an excuse to learn finite state machines, we make the "dropping" and "avoiding" state. Hope you enjoy!
    Copy the game to see the code: www.roblox.com...
    Previous Video: • Creating an Intelligen...
    Socials:
    - Discord Server: / discord
    - Twitter: / b_ricey763
    Popular Playlists:
    - Roblox Scripting: bit.ly/35Nz7Is
    - Roblox Showcases: bit.ly/2LVIPS2
    - Object Oriented Programming Roblox: bit.ly/2XQfWcG

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

  • @EgalIlI
    @EgalIlI 25 дней назад +1

    It's just wonderful to look at this code, so beautiful! So little code makes such a great thing! I absolutely love it!!! Just thinking about it, very useful! I will definitely use State Machines for my project!

  • @del_grocostoo
    @del_grocostoo Год назад +4

    you can make a tycoon about this like a delivery company that uses drones, you can get better and smarter drones it would be cool

  • @arty.mp4
    @arty.mp4 Год назад +3

    this notification was the highlight of my day

  • @kthuludev
    @kthuludev Год назад +1

    thanks for this, i'd only heard of state machines when watching videos for unity projects. I thought it may have been complicated, but you explained it very clearly and made it easy to understand. Currently, my AI uses a bunch of functions and ugly checks, but I'll gladly be reworking my systems to use state machines. Super educational, great content as always :3

    • @BRicey
      @BRicey  Год назад +1

      Thank you so much! A lot of this stuff can get overly complicated for no reason especially when using strictly object oriented languages like C#, but luau is so versatile it makes stuff like this easy -- just be careful, because with that versatility comes hard to find bugs.

  • @koainanis5840
    @koainanis5840 Год назад +1

    That looks pretty nice. Thanks for your work. Love it.

  • @memenadekhanh3992
    @memenadekhanh3992 Год назад +1

    Very good video, keep doing good work. I subbed and liked your video.

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

    All your videos are awesome

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

    hi, it turned out a great video, maybe you will make a new feature in roblox, they are cool, but incomprehensible Block cast,Spherecast

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

    9:38 yeah you would like it more clear

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

    Bro, how to make cooldown open door. This tutorial real need

  • @user-qs6yo4dp6o
    @user-qs6yo4dp6o Год назад

    It's cool, but I would like to ask, how to change it so that it will move as long as it senses any object?

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

    I have a question, wasn't a better way for performance to put local function instead of function? Sorry if a im wrong.

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

      Hi, not sure if you still need an answer after a month.. but actually making this function local will cause a syntax error, because functions used for Finite State Machine contained inside of a table. If functions where outside of table, then yes putting local before functions will be a little faster.

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

      So, if I understand right, you have to put parameters, to use local function? Anyways thank you.

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

    heyo

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

    27th person here 🔥

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

    ai drone?

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

    still not ai

    • @BRicey
      @BRicey  Год назад +2

      It's not ML but its still artificial intelligence in some sense -- being able to detect stimuli in one's environment and respond accordingly

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

      @@BRicey so if my raycast hits a part and I print out "not ai" then I can consider that system to be ai since it does detect something and it does respond accordingly

    • @amthuisreal
      @amthuisreal Год назад +1

      @@refusalstudios Sorry to bump in, but AI can range from simple to highly complex depending on how it's designed. At its core, the "intelligence" in AI refers to its ability to react and calculate based on specific rules. One example of a basic AI system involves the use of if statements to guide decision making. Which you can see in the video.

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

      @@amthuisreal so what if I check if my raycast hit a red, blue, or green block, it's still guiding decision making

    • @amthuisreal
      @amthuisreal Год назад +1

      @@refusalstudios Just as you structured your sentence, saying "if my raycast hit a red, blue or green block" you would have 3 things you're checking. So yes that is guided decision making.