I'm trying to make a RPG and would like it so that you click where you want to go as the control method. I have Dark Physics and believe that using a ray cast would be the best way to do this, however, I need to compensate for the mouse position on the screen so that instead of always ray casting onto the same spot (which will depend on the cameras position), however, my experience with game programming and understanding of 3D space mean I have NO IDEA how to implement this. I have searched but all of the threads are simply asking how to select an object, rather than get the 3D points in space, so any help/suggestions would be great.
thanks in advance for any suggestions/replies.