aboutsummaryrefslogtreecommitdiff
path: root/examples2d/ccd2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples2d/ccd2.rs')
-rw-r--r--examples2d/ccd2.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples2d/ccd2.rs b/examples2d/ccd2.rs
index 1200f29..1f25586 100644
--- a/examples2d/ccd2.rs
+++ b/examples2d/ccd2.rs
@@ -34,6 +34,7 @@ pub fn init_world(testbed: &mut Testbed) {
let collider = ColliderBuilder::cuboid(ground_thickness, ground_size)
.translation(vector![2.5, 0.0])
.sensor(true)
+ .active_events(ActiveEvents::INTERSECTION_EVENTS)
.build();
let sensor_handle = colliders.insert_with_parent(collider, ground_handle, &mut bodies);