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
Post a Comment