Is there a way to get the starting coordinates of the drag?
I tryed something like this. I thought it would work, but it doesent. x and y are the values sent by the touchDragged method.
divisor is a value to scale the coordiates town to the level of playingfield.
fingerX = x / divisor;
fingerY = y / divisor;
DeltaX = fingerX - position.x;
DeltaY = fingerY - position.y;
position.x = position.x + DeltaX;
position.y = position.y + DeltaY;