diff --git a/bevy_rapier3d/Cargo.toml b/bevy_rapier3d/Cargo.toml index d88577b7..5998d2c3 100644 --- a/bevy_rapier3d/Cargo.toml +++ b/bevy_rapier3d/Cargo.toml @@ -59,6 +59,7 @@ serde = { version = "1", features = ["derive"], optional = true } [dev-dependencies] bevy = { version = "0.15", default-features = false, features = [ + "bevy_window", "x11", "tonemapping_luts", "bevy_state", diff --git a/bevy_rapier3d/examples/ray_casting3.rs b/bevy_rapier3d/examples/ray_casting3.rs index 231de6ac..36c19b66 100644 --- a/bevy_rapier3d/examples/ray_casting3.rs +++ b/bevy_rapier3d/examples/ray_casting3.rs @@ -87,10 +87,7 @@ pub fn cast_ray( // We will color in read the colliders hovered by the mouse. for (camera, camera_transform) in &cameras { // First, compute a ray from the mouse position. - let Some(ray) = camera - .viewport_to_world(camera_transform, cursor_position) - .ok() - else { + let Ok(ray) = camera.viewport_to_world(camera_transform, cursor_position) else { return; };