Hello, I’ve been trying to achieve moving camera by using acceleration of the touch; i.e. to move camera slow or fast relatively to how quickly the player moved his finger on the screen. So far I’ve only got moving camera along X axis to the right and to the left. But the speed at which the camera moves is constant.
I tried to use Input.GetTouch(0).deltaPosition.magnitude and dividing by Input.GetTouch(0).deltaTime but didn’t have any success with these.
touchPointX = Input.GetTouch(0).deltaPosition.x;
float newPosition = Mathf.SmoothDamp(0.1f, -5.5f, ref velocityF, 0.3f); // also tried to achieve smoothness of the camera after releasing the finger
transform.RotateAround(player.transform.position, (new Vector3(-0.0f, touchPointX, 0.0f)), newPosition * 10);