diff options
Diffstat (limited to 'examples3d/debug_rollback3.rs')
| -rw-r--r-- | examples3d/debug_rollback3.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples3d/debug_rollback3.rs b/examples3d/debug_rollback3.rs index 6479e1f..19f9474 100644 --- a/examples3d/debug_rollback3.rs +++ b/examples3d/debug_rollback3.rs @@ -24,7 +24,7 @@ pub fn init_world(testbed: &mut Testbed) { .friction(0.15) // .restitution(0.5) .build(); - let mut ground_collider_handle = colliders.insert(collider, ground_handle, &mut bodies); + colliders.insert(collider, ground_handle, &mut bodies); /* * Rolling ball @@ -44,11 +44,11 @@ pub fn init_world(testbed: &mut Testbed) { let mut step = 0; let snapped_frame = 51; - testbed.add_callback(move |window, physics, _, graphics, _| { + testbed.add_callback(move |_, physics, _, _, _| { step += 1; // Snap the ball velocity or restore it. - let mut ball = physics.bodies.get_mut(ball_handle).unwrap(); + let ball = physics.bodies.get_mut(ball_handle).unwrap(); if step == snapped_frame { linvel = *ball.linvel(); |
