aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-07-01 14:26:57 +0200
committerGitHub <noreply@github.com>2022-07-01 14:26:57 +0200
commit1ba37b8f635bd79db2e48b07c038723f9e8c172f (patch)
treefa31ce984ba86601a3bfbe9b2b231c02ba08c45a /examples3d
parent8546434f35d8a8a3e6e6bb09c7985ab409a17d8d (diff)
parentd3ca956565dc361fe5583dc756f10de7c2ee1bbd (diff)
downloadrapier-1ba37b8f635bd79db2e48b07c038723f9e8c172f.tar.gz
rapier-1ba37b8f635bd79db2e48b07c038723f9e8c172f.tar.bz2
rapier-1ba37b8f635bd79db2e48b07c038723f9e8c172f.zip
Merge pull request #353 from dimforge/force-events
Add force reporting
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 {