Is there a way to detect if something is inside the light?

Ask any questions you have.
Is there a way to detect if something is inside the light?

Ask any questions you have.
Based on my knowledge, it is impossible to detect if something is inside the range of light. But, you can create a hitbox to detect.
I figured out that Dot Product is the way to go, as it registers angles, kinda like line of sight. Appreciate your help, though. :)
Iād try the dot product method.
You could also check for magnitude, and perhaps raycasting.