bevy_mod_picking icon indicating copy to clipboard operation
bevy_mod_picking copied to clipboard

Pick Hidden Components

Open dgriffith0 opened this issue 2 years ago • 2 comments

I have a use case where I want to click an object that isn't rendered to the screen. For example imagine a greedily meshed cube that was originally a 2x2 set of cubes. I would like to retrieve the entities of the individual hidden cubes and not the rendered mesh.

dgriffith0 avatar Nov 02 '23 02:11 dgriffith0

In that case you need to set up a backend for this. You could most easily do this by modifying the mod_raycast or rapier backends; it's probably only a few lines.

If we want to support this OOTB in this plugin, we would need to add this feature to relevant backends, to allow them to hit test against hidden objects, and a way to configure this. I'm not exactly sure what that would look like.

aevyrie avatar Nov 10 '23 04:11 aevyrie

Thanks for the suggestion. Was able to get it working by modifying raycast back end.

dgriffith0 avatar Nov 20 '23 03:11 dgriffith0