Original Post
Well, here comes a question i think have been asked a couple of time, and i have checked some old artickles and threads on the subject, but i can't really find the solution to my problem. Well, I need to place out objects on my heightmap with my cursor, and i get this problem that when I pick upp a object and starts moving around, the objects dosn't follow the cursor correct, like if I move the cursor one pixle on the screen, the object move like 10 pixles on the screen. And when i zoom out enough, the cursor can move 10 pixles, and my object just 1 pixle. I know, the way i transfer my cursor on the screen isn't the same thing as moving objects in the worldspace, but I can't figure out how to do the algorithm to get the correct translation. I want my picked object to follow my corsor on the screen, so that the object always stays under the cursor. It is easier for the user to move around objects in the tool then. So, if anyone out there have struggled with this problem before, or know how to fix this, please wright me an answer.