diff --git a/crates/bevy_xpbd_2d/examples/chain_2d.rs b/crates/bevy_xpbd_2d/examples/chain_2d.rs index 36983669..83608a28 100644 --- a/crates/bevy_xpbd_2d/examples/chain_2d.rs +++ b/crates/bevy_xpbd_2d/examples/chain_2d.rs @@ -43,7 +43,7 @@ fn setup( FollowMouse, MaterialMesh2dBundle { mesh: particle_mesh.clone(), - material: particle_material.clone_weak(), + material: particle_material.clone(), ..default() }, )) @@ -57,7 +57,7 @@ fn setup( MassPropertiesBundle::new_computed(&Collider::ball(particle_radius), 1.0), MaterialMesh2dBundle { mesh: particle_mesh.clone(), - material: particle_material.clone_weak(), + material: particle_material.clone(), transform: Transform::from_xyz( 0.0, i as f32 * (particle_radius as f32 * 2.0 + 1.0), diff --git a/crates/bevy_xpbd_2d/examples/many_shapes.rs b/crates/bevy_xpbd_2d/examples/many_shapes.rs index 14fe220a..c9b83ad3 100644 --- a/crates/bevy_xpbd_2d/examples/many_shapes.rs +++ b/crates/bevy_xpbd_2d/examples/many_shapes.rs @@ -136,21 +136,27 @@ fn setup( } fn movement( + time: Res