Skip to content

Commit

Permalink
Rename RapierContext::colliders to ::rigid_body_colliders
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Aug 6, 2023
1 parent e8f941a commit ff2edd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased
### Added
- Add `RapierContext::rigid_body_colliders` to retrieve all collider entities attached to this rigid-body.

## 0.22.0 (10 July 2023)
### Modified
- Update to Bevy 0.11.
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl RapierContext {

/// If entity is a rigid-body, this returns the collider `Entity`s attached
/// to that rigid-body.
pub fn colliders(&self, entity: Entity) -> impl Iterator<Item = Entity> + '_ {
pub fn rigid_body_colliders(&self, entity: Entity) -> impl Iterator<Item = Entity> + '_ {
self.entity2body()
.get(&entity)
.and_then(|handle| self.bodies.get(*handle))
Expand Down

0 comments on commit ff2edd8

Please sign in to comment.