How to tansform the screen mouse position to game world position?

Screen mouse  position is (300,400), but the world coordinate is not the same .

How can I tansform the coordinate …

the display system has a function getPickRay(Vector2f screenPosition, boolean flipVertical,

            Ray store)

You have to set screenPosition to the position of the mouse on the screen

Ok,It works well. Like this :

Ray mouseRay = display.getPickRay(screenPos, true, mouseRay);

mouseRay.getOrigin();



Thanks a lot…