我的场景中有很多物体,但是交叉变量总是返回一个空数组,任何想法?
var mouse = new THREE.Vector2((event.clientX / window.innerWidth) * 2 - 1, -( event.clientY / window.innerHeight ) * 2 + 1);
var raycaster = new THREE.Raycaster(); //new THREE.Raycaster(camera.position, mouse);
raycaster.setFromCamera(mouse, camera);
var intersects = raycaster.intersectObjects(scene.children, true);