Well, I’m moving 3d objects using mouse, but the problem is: when I click on an object, it ‘jumps’ to the clicked position. And I dont want that it jumps, but i want it stay at the same position, so it go moving while mouse is moving.
ex. If i click on left side of a box, the box jumps to that clicked place. But, I want to move the object clicking at his left side without it jumps to that left side. (wow, i really dont know how explain).
When a click is read, store the x,y mouse postion (global variables, whatever else depending on your coding skills).
Then, as the mouse move, compare its current x,y to the stored x,y.
Add the deltas to the object x,y.