-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
TileMap: Add method to fetch the layer for a given body #76246
TileMap: Add method to fetch the layer for a given body #76246
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs the commits to be squashed. Looks good otherwise.
Sorry to ask, but can someone better with Git squash that for me? Something is screwy with git on my computer, I spent an hour talking with the helpful people in godot development chat trying to run commands and it keeps refusing to work. I could make a new branch from scratch with the changes, but from what I understand that would also produce a new pull request rather than merging into this one. |
73fb18c
to
093cb90
Compare
No problem, I squashed the commits for you :) |
Thanks! And congrats for your first merged Godot contribution 🎉 |
Currently it isn't possible to find the tilemap layer of what object you're colliding with. This adds a tilemap method, get_layer_for_body_rid(), which works just like the already-existing get_coords_for_body_rid(), except it returns the tilemap layer instead of the tilemap coordinates.
Bugsquad edit: