jhylands

getting the direction of the camera

Dec 5th, 2020
2,543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     const raycaster = new THREE.Raycaster();
  2.     raycaster.setFromCamera(new THREE.Vector2(0,0), camera)
  3.     const intersection = worlds.intersectRay(camera.position, raycaster.ray.direction);
Advertisement
Add Comment
Please, Sign In to add comment