c++ - OpenGL: How to calculate the angle where my mouse is pointing at in the 3d space? -


I just need to know which angle (x, y, z vector) is pointing my cursor so I can kill any particle in the direction. I

I can not use depth tests, so the typical picking method is not an option.

Is it possible with pure mathematics only? If I know View Port Aspect Ratio and Perspective etc?

Edit: I need to get coordinated with the blank view. Completely empty, not exactly drawing!


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -