(please click run to make it happen)
When creating a spotlight, we give a position and a direction.
I expected the direction vector to be a point of the middle line of the cone.
Instead, It doesn’t seem to be always the case.
I created a laser-like spotlight to show the issue.
The b0 cube is the start of my spotlight, and the b1 represents the end.
I should always have a red dot on my b1 cube (the “to” vector in the PG), but instead, the direction show unpredictable and the spotlight doesn’t follow it exactly, showing no light on b1.
Now, please interchange laser_type and larger_type: the result is not properly centred.
I cranked the intensity up to make sure it wasn’t related.
I need a very precise way to create light paths.
In my scene, at scale, it is really off.
You can disable/enable the “ground” box (didn’t bother to change the naming), to make sure that it is not physics at play here.
How may I deal with this situation? What did I do wrong? Isn’t the direction vector to be understood like “the centre line of the cone should pass by that point exactly”? Is it caused by rounding?