Split rigid-bodies and colliders into multiple components

This commit is contained in:
Crozet Sébastien
2021-04-26 17:59:25 +02:00
parent aaf80bfa87
commit c32da78f2a
91 changed files with 5969 additions and 3653 deletions

View File

@@ -38,7 +38,12 @@ pub fn init_world(testbed: &mut Testbed) {
// Remove then re-add the ground collider.
let coll = physics
.colliders
.remove(ground_collider_handle, &mut physics.bodies, true)
.remove(
ground_collider_handle,
&mut physics.islands,
&mut physics.bodies,
true,
)
.unwrap();
ground_collider_handle = physics
.colliders