Raycaster not working

Hi , I’m trying to add raycasting to my application, but I’m getting an error saying:
image
Here is a link to my code

mousemove event listeners don’t work when applied to the window object.

Oh so what do I need to do?

Use document.

2 Likes