Hi everyone, I'm currently attempting to create a ray that extends straight out from the camera and intersects with objects in my line of sight. However, all the resources I've come across involve using the mouse for this interaction, and I'm struggling to adapt it.
This is the code I've managed to put together:
var raycaster = new THREE.Raycaster();
function render()
{
raycaster.set(camera, 0);
renderer.render( scene, camera );
}