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

@@ -91,7 +91,7 @@ pub fn init_world(testbed: &mut Testbed) {
let coll = ColliderBuilder::cuboid(ground_size, ground_height + step as f32 * 0.01, 0.4)
.friction(0.15)
.build();
new_ground_collider_handle =
let new_ground_collider_handle =
physics
.colliders
.insert(coll, ground_handle, &mut physics.bodies);