josdirksen / learning-threejs

Code repository for the examples from the Packt book "Learning Threejs"
3.1k stars 1.27k forks source link

Please help explain why choosing this point #34

Open sakopqiu opened 4 years ago

sakopqiu commented 4 years ago

https://github.com/josdirksen/learning-threejs/blob/85f85aeb137f0b01ba96c8b1bfd7019134e596ef/chapter-09/02-selecting-objects.html#L200

I am a bit confused about the point selected by the author. Why new THREE.Vector3(-30, 39.8, 30)

IMHO, it should be camera.position, since I want to draw a barrel from the camera to the intersection point, but it does not seem to work either.