Top view draggable orthographic Camera

I dont think thats what I am looking for.

Here is how it sould work exactly:

  1. if Mouse down and move mouse 10 to the left
  2. then I want the camera position to move 10 to the left also.

So if I understand how this should work, I need:

  • the starting Vector position when I click the mouse down
  • the end Vector position when mouse is moved
  • the distance between the two == end - start
  • subtract/add (?) the difference from the current camera position

And this should work in real time as I hold the mouse down.

Ideally this will work with touch also and at any direction on the x, z axis.