Steer and Draw Forces in Godot 4.2+

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

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

  • @PakGrantChristie
    @PakGrantChristie 6 месяцев назад +2

    This is gold. Thank you. I hope one day you might explain steering in a 3D space with a 3D fish.

    • @cashewolddew
      @cashewolddew  6 месяцев назад +3

      I really appreciate the comment! If enough people request something like this, I see no reason to not do it! 🥜
      The fun thing is that the whole steering concept works almost identically in 3D to how it does in 2D. One change that you could do would be to, maybe, not make the fish follow the mouse, as the mouse only moves in 2D space, but rather to create a new moving target which the fish could follow.

  • @kylestyle2202
    @kylestyle2202 6 месяцев назад

    I'm very new to programming and vectors etc, and I was looking how to do EXACTLY THIS.
    THank you!

    • @cashewolddew
      @cashewolddew  6 месяцев назад

      I'm really glad it helped you! Feel free to let me know if there are any other topics you'd like to learn! 🥜

  • @psyboyo
    @psyboyo 6 месяцев назад

    Cool demo of those little useful things, thanks!

  • @alfredogodoy6854
    @alfredogodoy6854 6 месяцев назад

    ty!

  • @ash-faque
    @ash-faque Месяц назад

    What about a 3D implementation, probably with a car

    • @cashewolddew
      @cashewolddew  Месяц назад

      Thanks for the suggestion! I'll look into it and add it to the list of potential future videos! 🥜🥜

  • @kilokoins1336
    @kilokoins1336 6 месяцев назад

    Pretty nice bro, But what if i want to move the fish with the keyboard? something like w-a-s-d, how we do that?

    • @cashewolddew
      @cashewolddew  6 месяцев назад +1

      If you want to use the same algorithm for following a target, the first thing that comes off in my mind is to use a 'carrot on a stick' method.
      Basically, you attach a target in front of your vehicle or character, and when you press w, a, s, d, the target moves towards that direction, making the vehicle follow it.
      Keep in mind that there are many ways of doing this, each with their pros and cons.
      🥜