Pointer events seem wonky on line segments? #907
Answered
by
drcmda
alexturpin
asked this question in
Q&A
-
Hey everyone, I've been trying to render some objects in my scene as line segments and it seems as if the pointer events are registering even when my pointer is nowhere near the geometry. I tweaked the basic example here to showcase this (also disabled rotation to make it clearer): https://codesandbox.io/s/r3f-basic-demo-forked-6w86p You can get into scenarios such as this one, where the pointer is nowhere near and it still changes color: Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
drcmda
Jan 3, 2021
Replies: 1 comment 1 reply
-
<Canvas raycaster={{ params: { Line: { threshold: 0.1 } } }}> https://threejs.org/docs/index.html#api/en/core/Raycaster.params |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
alexturpin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://threejs.org/docs/index.html#api/en/core/Raycaster.params