Recognizing if something is in the range of light

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

Ask any questions you have.

1 Like

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.

2 Likes

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.

1 Like