aevyrie / bevy_mod_picking

Picking and pointer events for Bevy.
https://crates.io/crates/bevy_mod_picking
Apache License 2.0
784 stars 172 forks source link

transparency and overlapping problems with sprite picking #324

Closed MonforteAdrian closed 4 months ago

MonforteAdrian commented 6 months ago

I am trying to use the picking on an isometric tilemap, but I am encountering two problems. The transparent corners of the isometric tile png are also picked. Is there any way I can fix this? The isometric tiles overlap one another and when you put the cursor on top of one tile, this one is detected until you get out of it, even when you are in another tile in the middle of the proccess. This causes to skip half of the tiles detection.

aevyrie commented 4 months ago

The sprite backend is pretty rudimentary. You would need to do one of the following: