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
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. 😍
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)
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.
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
"What a brilliant solution! Thank you for making such a useful tutorial video.
this tutorials are amazing
Thanks a lot!
Thank you very much
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. 😍
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)
how can I detect walls between the light and the object? Because if there is something between it should not trigger
Is there no pyramid collision shape? That would make a nice estimation for a light cone, right?
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.
@@iaknihs that makes perfect sense! awesome video...
today I learned that you can close codes! Did not know that.
What do you mean? Which part of the video are you referring to?
@@nope9310 let me remember... ah yes. 2:47. he closes all the stuff he doesn't need.
@@RikThunder33 Ahh right! He does that so fast that I missed it. Thank you for coming back to explain it. :)