I have a scene set up in a 3D viewport. The game is 2.5D, so for the most part, the game will be composed of sprites.
Until I started using glRotated(0.15, 1, 0, 0); to rotate the entire view of the game, I had no problem getting the world location of the mouse. Now, obviously, the input methods I use for Mouse’s X and Mouse’s Y on the world need updating, or I need new methods.
So my question is, is there any method to getting the physical X, Y, and Z location of the mouse, taking in the input of the mouse’s X and Y? If OpenGL doesn’t support the mouse’s location with drawn objects or anything like that, could anyone help me with the math?
I gladly thank anyone who takes the time to read this.