Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird behaviour with raycasting under ortographic camera projection #35

Open
fruiz-timining opened this issue Dec 2, 2021 · 1 comment

Comments

@fruiz-timining
Copy link

On the other->raycast demo, which works fine by default, if you change the camera projection to Orthographic (Controls button, uncheck "Perspective camera"), you can no longer select meshes with your mouse cursor.
Instead it seems to only hit meshes that appear on the very center of the demo's viewport, regardless of the mouse's relative position over it (you can try panning the camera to any side and start clicking to see it hits whatever it is on the center).
Not sure if that is the intended behaviour or if Raycasting is not supported under orthographic projection.

@danaugrs
Copy link
Member

danaugrs commented Jun 18, 2022

Thanks @fruiz-timining, will investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants