Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sorting by depth in 2d picking module #657

Open
ViciousBadger opened this issue Feb 21, 2025 · 0 comments
Open

Support sorting by depth in 2d picking module #657

ViciousBadger opened this issue Feb 21, 2025 · 0 comments

Comments

@ViciousBadger
Copy link

Hello,

I was wondering if it was possible to use Avian2D's mesh picking plugin while sorting pickable meshes by the Z value of their global transform so that the "visible" object is picked in case of overlaps. in my case I often have entities with colliders "on top of" each other.

Of course I believe I could just use bevy's built in mesh picker plugin for this case, but it would be cool if Avian also supported this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant