aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
Diffstat (limited to 'examples3d')
-rw-r--r--examples3d/ccd3.rs2
-rw-r--r--examples3d/sensor3.rs2
2 files changed, 2 insertions, 2 deletions
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 {