Properly take initial sleeping state set by the user when creating a rigid-body

This commit is contained in:
Sébastien Crozet
2022-12-11 17:47:16 +01:00
parent cb9350fd80
commit 0207f8cf96
6 changed files with 46 additions and 21 deletions

View File

@@ -299,7 +299,13 @@ impl NarrowPhase {
}
}
self.handle_modified_colliders(islands, modified_colliders, colliders, bodies, events);
self.handle_user_changes_on_colliders(
islands,
modified_colliders,
colliders,
bodies,
events,
);
}
pub(crate) fn remove_collider(
@@ -393,7 +399,7 @@ impl NarrowPhase {
}
}
pub(crate) fn handle_modified_colliders(
pub(crate) fn handle_user_changes_on_colliders(
&mut self,
mut islands: Option<&mut IslandManager>,
modified_colliders: &[ColliderHandle],