diff options
Diffstat (limited to 'examples2d')
| -rw-r--r-- | examples2d/ccd2.rs | 2 | ||||
| -rw-r--r-- | examples2d/sensor2.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples2d/ccd2.rs b/examples2d/ccd2.rs index 4844579..12468dc 100644 --- a/examples2d/ccd2.rs +++ b/examples2d/ccd2.rs @@ -87,7 +87,7 @@ pub fn init_world(testbed: &mut Testbed) { // Callback that will be executed on the main loop to handle proximities. testbed.add_callback(move |mut graphics, physics, events, _| { - while let Ok(prox) = events.events.try_recv() { + while let Ok(prox) = events.collision_events.try_recv() { let color = if prox.started() { [1.0, 1.0, 0.0] } else { diff --git a/examples2d/sensor2.rs b/examples2d/sensor2.rs index 67e3504..595ad3b 100644 --- a/examples2d/sensor2.rs +++ b/examples2d/sensor2.rs @@ -68,7 +68,7 @@ pub fn init_world(testbed: &mut Testbed) { // Callback that will be executed on the main loop to handle proximities. testbed.add_callback(move |mut graphics, physics, events, _| { - while let Ok(prox) = events.events.try_recv() { + while let Ok(prox) = events.collision_events.try_recv() { let color = if prox.started() { [1.0, 1.0, 0.0] } else { |
