Skip to content
Discussion options

You must be logged in to vote

Why am I getting this error message?

You deduced it right.

The default picking backend for bevy_mod_picking uses mesh collision to detect
what the mouse is hovering. To tell if the mouse is hovering over a mesh,
bevy_mod_picking reads the Mesh vertices and applies a collision
detection algorithm that is specific to meshes with a TriangleList topology,
it can't handle other kind of topologies.

This is a difficult problem to solve. I can't give you a ready-made solution. You
can do the following:

  • Generate meshes with a TriangleList topology for your lines, and store them in RAM.
    This would also allow you to customize your line width!
  • Have a bitmatrix that acts like a canvas, draw the lines…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wbpaley
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants