In my application I have inputManager.setCursorVisible (true); used.
When I shoot, I shoot with new Ray (cam.getLocation (), cam.getDirection ()); So straight out of the camera.
How can I query the mouse position and window size? If the standard camera is 45 °, then I should be able to bend cam.getDirection () in the direction of the mouse …
Is there an example or contribution for this? Sorry, I couldn’t find anything about it.