diff options
| -rw-r--r-- | examples2d/ccd2.rs | 2 | ||||
| -rw-r--r-- | examples2d/sensor2.rs | 2 | ||||
| -rw-r--r-- | examples3d/ccd3.rs | 2 | ||||
| -rw-r--r-- | examples3d/sensor3.rs | 2 |
4 files changed, 4 insertions, 4 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 { diff --git a/examples3d/ccd3.rs b/examples3d/ccd3.rs index 8bcbd6e..4047f4b 100644 --- a/examples3d/ccd3.rs +++ b/examples3d/ccd3.rs @@ -112,7 +112,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/examples3d/sensor3.rs b/examples3d/sensor3.rs index 9fae737..479b0c6 100644 --- a/examples3d/sensor3.rs +++ b/examples3d/sensor3.rs @@ -72,7 +72,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 { |
