Question,
In the editor found at this link, you can click on a light or camera to select it. I am familiar with using
raycaster.intersectObjects(objects)
to select meshes, but how can I achieve the same result for lights and cameras which do not have meshes?
I was thinking of creating some sort of invisible "picker" box around them that could be detected by the raycaster through an invisible mesh. Any suggestions or references for this approach?
Thank you!
NOTE: I prefer answers in TypeScript, but JavaScript solutions are also welcome!