Hi, I'm trying to make an RTS type of game and I can't figure out how to implement a mouse.
The mouse will only be allowed to move on a plane but I want it to also be able to click buttons that will be rendered in 2D after RenderWorld.
How can I get the 3D coordinates of where the mouse clicks on the plane? I've tried to use a entity that is controlled by the mouse but of course it moves incorrectly due to the camera perspective.
Any ideas?
Thanks in advance
The mouse will only be allowed to move on a plane but I want it to also be able to click buttons that will be rendered in 2D after RenderWorld.
How can I get the 3D coordinates of where the mouse clicks on the plane? I've tried to use a entity that is controlled by the mouse but of course it moves incorrectly due to the camera perspective.
Any ideas?
Thanks in advance