Hi @ all,
I got a little problem, I want to drag an OpenGLobject and drop in at another postion! What I don’t know is, how can I find out how many units I have to translate the object according to the units I have moved the mouse.
A little example:
- I drag the object with the mouse at the windowcoordinates
x=500 and y = 480 - I now move the mouse 50 units in x-direction.
- so I want drop the object at x=550 and 480
-> how many units in OpenGLcoordinates do I have to translate the object
I’m looking forward to your replies…
p.s.: if I didn’t express clearly please post !!!