Mouse coords to World coords

I’d like to get the click coordinates from the mouse (easy using getMouse()), but how do i then get those to world coordinates. I have tried using the camera matrix, but it is always an identity matrix even though the camera is moving. Is it because i am using Does this not update the camera’s matrix?

since you cant precisely map a 2d coordinate into 3d space things are a bit more tricky.
however, there is a sample called “chessboard” (which comes with your panda installatio) which does exactly that.
have a look at it.