Fabricio
11-24-2008, 01:19 PM
i don't know exactly how to explain. :o
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).
I hope you can understand.
i know i need to calc an offset, but how?
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).
I hope you can understand.
i know i need to calc an offset, but how?