Hi there, I am trying to setup a simple click, hold and drag script that moves a camera around. similar in the way that Google maps works.
I'm having some trouble figuring out the action flow to proceed though. I have mouse click action, and set Position, eventually I will have to invert the values somehow as the camera should move in the opposite direction to the mouse.
As I understand it, I have to do this:
left mouse click down
store the position in a vector
record the movement of the mouse while being held down - how?
compare the current moving vector to the stored one saving the output
invert the output
apply the transform to the camera
Any help very appreciated. Thanks