Godot Cone Collision - Light-Alarm

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

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

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

    To calculate the angle between two vectors, technically the dot product results in the length of vector 1 * the length of vector 2 * cos(the wanted angle), but if both vectors are normalized, the lengths are both 1, so we get only the cosine we care about.
    The video setting up security cameras is here: ruclips.net/video/X9Gk2rDzXlo/видео.html

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

    "What a brilliant solution! Thank you for making such a useful tutorial video.

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

    this tutorials are amazing

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

      Thanks a lot!

  • @beton3035
    @beton3035 2 месяца назад

    Thank you very much

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

    The great tutorial aside for a moment …
    I like that subtle hint for "Like, Comment & Subscribe". That's how most other YTers should do it as well. I subscribed before, though, and I would have liked the video either way, but at least the "comment" part worked out well. Apparently. 😁👍
    Keep up your good work. I'd be happy to see more 3D-related Godot content. 😍

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

      Thanks! Glad you're liking the Like etc. sign, I do think it's more fun to work it into the video somewhere once in a while over asking all the time.
      Absolutely intend to do more 3D as well, will just have to see what may be interesting. (With Godot 4 coming up, I think there's a lot of stuff I'll want to try sometime)

  • @klaus9503
    @klaus9503 3 месяца назад

    how can I detect walls between the light and the object? Because if there is something between it should not trigger

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

    Is there no pyramid collision shape? That would make a nice estimation for a light cone, right?

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

      You can make custom collision shapes from meshes, but they aren't easily adjustable on-the-fly in angle and reach (can scale them like any other object of course). The method in this video is a bit more work to set up, but I wanted a solution that would automatically adjust to any settings on the SpotLight.

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

      @@iaknihs that makes perfect sense! awesome video...

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

    today I learned that you can close codes! Did not know that.

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

      What do you mean? Which part of the video are you referring to?

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

      @@nope9310 let me remember... ah yes. 2:47. he closes all the stuff he doesn't need.

    • @nope9310
      @nope9310 2 года назад +1

      @@RikThunder33 Ahh right! He does that so fast that I missed it. Thank you for coming back to explain it. :)