fix: less invasive solve_character_collision_impulses function (#652)

* fix: less invasive `solve_character_collision_impulses` function

Taking ownership of the elements is not necessary.

It also conveys the information that elements are only read.

* Add Changelog
This commit is contained in:
Thierry Berger
2024-06-23 23:01:55 +02:00
committed by GitHub
parent 3004a7d38d
commit 5308a28435
3 changed files with 8 additions and 4 deletions

View File

@@ -819,7 +819,7 @@ impl<'a, 'b, 'c, 'd, 'e, 'f> Testbed<'a, 'b, 'c, 'd, 'e, 'f> {
&phx.query_pipeline,
character_collider.shape(),
character_mass,
collisions,
&*collisions,
QueryFilter::new().exclude_rigid_body(character_handle),
);