Fix collider insertion/removal tracking.

This commit is contained in:
Crozet Sébastien
2020-11-26 11:41:43 +01:00
parent f293dc6024
commit 391bcf372a
8 changed files with 53 additions and 75 deletions

View File

@@ -71,7 +71,7 @@ pub fn init_world(testbed: &mut Testbed) {
return;
}
if let Some(mut platform) = physics.bodies.get_mut(platform_handle) {
if let Some(platform) = physics.bodies.get_mut(platform_handle) {
let mut next_pos = *platform.position();
let dt = 0.016;