aevyrie / bevy_mod_raycast

A little mesh raycasting plugin for Bevy
https://crates.io/crates/bevy_mod_raycast
MIT License
320 stars 93 forks source link

Only back faces are selected with an orthographic camera. #33

Closed BenCantCode closed 2 years ago

BenCantCode commented 2 years ago

Using a perspective camera in the mouse_picking example, the debug cursor points towards the camera when the sphere is hovered over. Using an orthographic camera (OrthographicCameraBundle::new_3d()), the cursor is instead placed on the side facing away from the camera. Here's a screenshot of what this looks like:

Screen Shot 2022-01-16 at 4 51 37 PM

This issue also seems to affect bevy_mod_picking.

aevyrie commented 2 years ago

Thanks for the report. I'll take a look.