Mouse events on geometrical lines created on Mesh #7403
Unanswered
raksha1991
asked this question in
Q&A
Replies: 1 comment
-
You should implement intersects manually. You can't use standard methods on non-standard implementation. https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line But because you have a big amount of lines, you should use a Quad Tree for this, because iterate and calc SQRT of 1 billion lines is super slow operation in naive implemented. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I am new to Pixijs and WebGL. With the help of one of the community members I could draw millions of lines using Mesh and geometry but now I need to add mouseover and click event for all those lines. I could not find any example for Interactive geometry. Is it possible? I tried to add mousedown event for Mesh and it works fine but I want it for every line created on Mesh.
Working example: https://www.pixiplayground.com/#/edit/wUAri_e9qW6cM9olqeSm7
Beta Was this translation helpful? Give feedback.
All reactions