Button Push (Godot 4)

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

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

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

    Unlike joints, this method moves the button between the initial position and the target position for one single object. Physical joints would allow multiple objects on the button without any setup, but the joints sometimes flew completely off the button or caused jitter. So this is the best method I've found.
    This method currently detects a single object. To check multiple objects, you would need to store a counter or a array of objects and each time an object goes in or out, check whether there is still an object on the button or not and emit the signals accordingly.
    Also, the button movement makes use of the move_toward method, which is compared here with the lerp function: ruclips.net/video/25xYefKIYKo/видео.html

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

    Ништяк!

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

    I have a question regarding your whiteboard project - is it possible to contact you somehow?

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

      Yes. arcane.energy.help@gmail.com

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

    try animatioon

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

      While animations are great, I prefer the math-based approach because I can then control every aspect of it and dynamically change the press height if needed.