Replies: 1 comment 1 reply
-
I happened to be working on this today. The PR is now up :) #6126 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is something I've run into needing to do a few times and didn't quite figure it out, but I just found this example in
bevy_ecs_tilemap
that shows how simple it really is!https://github.com/StarArawn/bevy_ecs_tilemap/blob/de8d005331dde7d9ebb8c4fe1b36769b84e44be5/examples/mouse_to_tile.rs#L291-L306
Sharing here in case anybody else comes searching for it like I did. It seems like this would also be a good utility function to include on the camera, similar to the function that lets you get the screen space from the world space.
Beta Was this translation helpful? Give feedback.
All reactions