I can't see that working. If I 'grabbed' the top of a tower then moved the mouse to the side then the mouse mighty be over something miles away in the distance. So it would register a massive movement. What I want is the camera to move in such a way that the tower stays under the mouse cursor.
I'm thinking of getting the x,y,z location the way you say and then finding where on screen x+1,y,z is and where x,y,z+1 is. Then I would have some kind of scale for the dragging. Something close to the camera would need smaller movement (in world coords) than something far away in order to keep up with the mouse.
I'm thinking of getting the x,y,z location the way you say and then finding where on screen x+1,y,z is and where x,y,z+1 is. Then I would have some kind of scale for the dragging. Something close to the camera would need smaller movement (in world coords) than something far away in order to keep up with the mouse.