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

Rename CollisionLayers methods with_group, without_group etc. to add_group, remove_group #62

Merged
merged 2 commits into from
Jul 8, 2023

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Jul 8, 2023

Renames collision layer methods to be clearer and adds remove_groups and remove_masks.

  • with_maskadd_mask
  • with_masksadd_masks
  • without_maskremove_mask and remove_masks
  • with_groupadd_group
  • with_groupsadd_groups
  • without_groupremove_group and remove_groups

This makes it clearer that the `CollisionLayers` methods are additive
and it's closer to Bevy's naming conventions.

Also added `remove_groups` and `remove_masks`.
@Jondolf Jondolf added the enhancement New feature or request label Jul 8, 2023
@Jondolf Jondolf merged commit 8a28537 into main Jul 8, 2023
3 checks passed
@Jondolf Jondolf deleted the collision-layers-method-names branch July 8, 2023 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant