Skip to content

Commit

Permalink
fix 3d examples + small pr suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Dec 5, 2024
1 parent cac6ac0 commit 9e59c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions bevy_rapier3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions bevy_rapier3d/examples/ray_casting3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 9e59c79

Please sign in to comment.