Bread Loaves - 02 - Altitude

Поділитися
Вставка
  • Опубліковано 13 лип 2024
  • Learn how to bake with Ohm!
    Music:
    From the Depths' OST
  • Ігри

КОМЕНТАРІ • 13

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

    Thank god I watched the video to the end, output functions are just what I needed for developing my aircraft AI!

  • @juggerftd
    @juggerftd 2 роки тому +3

    Since i wasn't quite able to follow the part where you explained your anti-wave formula I made my own (for AI Breadboard):
    if (a > output(1),a,output(1))
    a= Is the target Altitude from Steering point info.
    This will always Output the maximum recorded height that your AI desires.
    With this i ran into the problem that my Craft would stay at a way to high altitude after rising up in order to evade colliding with other crafts. So i added a condition that checks if the last output is more than 10m higher than the current request of the AI. If so it resets the altitude to the currently desired one.
    if (a > output(1),a,if(output(1)> a+10,a,output(1)))
    So far it seems to work for me but I'm aware that this is not a very clean solution and that i have probably overlooked some scenarios.

    • @OhmIsFutile
      @OhmIsFutile  2 роки тому +1

      That looks like it would also work, well done!

  • @MrJay_White
    @MrJay_White 3 роки тому +5

    i laughed at 8 minutes when you got into the maths and the screen started drifting off

    • @OhmIsFutile
      @OhmIsFutile  3 роки тому +1

      Hehehe, that may or may not have been deliberate. Btw, I think you were the one who asked how to deal with waves and such so I hope that helped!

    • @MrJay_White
      @MrJay_White 3 роки тому +3

      @@OhmIsFutile damn, you got a good memory! yea, waves where being a pain for my hovers and platforms. thanks a lot.

  • @KekaisWorld
    @KekaisWorld 3 роки тому +1

    Yess, I’m currently working solely on aircraft and I’m trying to figure out loaf and lua for dogfighting

  • @grandfremdling3841
    @grandfremdling3841 3 роки тому +2

    I really try to get into this, and all the little Things. So i was a little sad as the screen-zoom moved away between 08:10 and 9:30.
    After that you showed the full formula, so it's ok.

    • @OhmIsFutile
      @OhmIsFutile  3 роки тому +1

      Sorry about that, it was actually a mistake in the editing... recently learned how to crop/zoom/pan with my software D:

  • @grandfremdling3841
    @grandfremdling3841 3 роки тому +1

    This "output" stuff is really great! Have to look into.
    I would Love to see a Video about a dodgy flying Jet maybe. I think it is done with a sin- function or something.
    Or if you would Not make one, maybe tell me if there is a good enemy-craft ingame to get a nice idea how to "program" the breadboard...
    Thanks a Lot for your tutorials, both here and in steam!

  • @nicopence3148
    @nicopence3148 3 роки тому +1

    Where did you learn about the special if and output things? Is there any more useful functions?

    • @OhmIsFutile
      @OhmIsFutile  3 роки тому

      Almost everything is in the documentation tab that appears when you have a math evaluator selected. The If function syntax is something I picked up from the official discord. Hopefully that answers your question and with a bit of luck I'll address whatever's left in later videos. :)

    • @nicopence3148
      @nicopence3148 3 роки тому

      @@OhmIsFutile Thx