We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've tried this, but it doesn't work.
const { offsetX, offsetY } = event; const x = (offsetX / window.innerWidth) * 2 - 1; const y = - (offsetY / window.innerHeight) * 2 + 1; const mousePoint = new THREE.Vector2(x,y); let raycaster = new THREE.Raycaster(); raycaster.setFromCamera(mousePoint, camera); var intersects = raycaster.intersectObjects(scene.children ,true); for (var i = 0; i < intersects.length; i++) { intersects[i].object.material.color.set(0xff0000); }
Looking forward to your reply
The text was updated successfully, but these errors were encountered:
For mouse picking 3D objects generated by three-geo, we have at least one such case. It might be helpful for you to study it.
Sorry, something went wrong.
No branches or pull requests
I've tried this, but it doesn't work.
Looking forward to your reply
The text was updated successfully, but these errors were encountered: