aboutsummaryrefslogtreecommitdiff
path: root/examples2d
diff options
context:
space:
mode:
Diffstat (limited to 'examples2d')
-rw-r--r--examples2d/add_remove2.rs2
-rw-r--r--examples2d/platform2.rs2
-rw-r--r--examples2d/sensor2.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples2d/add_remove2.rs b/examples2d/add_remove2.rs
index a351a8f..614829b 100644
--- a/examples2d/add_remove2.rs
+++ b/examples2d/add_remove2.rs
@@ -10,7 +10,7 @@ pub fn init_world(testbed: &mut Testbed) {
let rad = 0.5;
// Callback that will be executed on the main loop to handle proximities.
- testbed.harness_mut().add_callback(move |physics, _, _, _| {
+ testbed.harness_mut().add_callback(move |physics, _, _| {
let rigid_body = RigidBodyBuilder::new_dynamic()
.translation(0.0, 10.0)
.build();
diff --git a/examples2d/platform2.rs b/examples2d/platform2.rs
index 769161f..88f05f2 100644
--- a/examples2d/platform2.rs
+++ b/examples2d/platform2.rs
@@ -62,7 +62,7 @@ pub fn init_world(testbed: &mut Testbed) {
*/
testbed
.harness_mut()
- .add_callback(move |physics, _, run_state, _| {
+ .add_callback(move |physics, _, run_state| {
let platform = physics.bodies.get_mut(platform_handle).unwrap();
let mut next_pos = *platform.position();
diff --git a/examples2d/sensor2.rs b/examples2d/sensor2.rs
index 123f633..382581e 100644
--- a/examples2d/sensor2.rs
+++ b/examples2d/sensor2.rs
@@ -71,7 +71,7 @@ pub fn init_world(testbed: &mut Testbed) {
// Callback that will be executed on the main loop to handle proximities.
testbed
.harness_mut()
- .add_callback(move |physics, events, _, _| {
+ .add_callback(move |physics, events, _| {
while let Ok(prox) = events.proximity_events.try_recv() {
let color = match prox.new_status {
Proximity::WithinMargin | Proximity::Intersecting => Point3::new(1.0, 1.0, 0.0),