Skip to content

Commit

Permalink
Dereference ray.direction before passing to cast_ray_and_get_normal
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeForceZero committed Feb 20, 2024
1 parent 9cb3db5 commit c2c48e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/bevy_picking_rapier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pub fn update_hits(
if let Some((entity, hit_data)) = rapier_context
.cast_ray_and_get_normal(
ray.origin,
ray.direction,
*ray.direction,
f32::MAX,
true,
QueryFilter::new().predicate(&|entity| {
Expand Down

0 comments on commit c2c48e9

Please sign in to comment.