dimforge / bevy_rapier

Official Rapier plugin for the Bevy game engine.
https://rapier.rs
Apache License 2.0
1.25k stars 261 forks source link

near.z in NDC may be -1. #120

Closed YYMMYB closed 2 years ago

YYMMYB commented 2 years ago

In file bevy_rapier3d/examples/ray_casting3.rs : I copy fn ray_from_mouse_position to my project, but it doesn't work. I fixed it by changing near.z from 0 to -1. Maybe the example file also need this change.

sebcrozet commented 2 years ago

Fixed with bevy_rapier 0.13. Please reopen if the problem persists.