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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -