- Home /
Question by
EugeneJefferson · Sep 23, 2016 at 11:41 AM ·
rotatearoundtransform.
problem with RotateAround after reload scene
After reload scene RotateAround doesnt work. touchDeltaPosition.x changes but camera position no
if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved) { Vector2 touchDeltaPosition = Input.GetTouch(0).deltaPosition; transform.RotateAround(target, new Vector3(0, touchDeltaPosition.x, 0), 75f * Time.deltaTime); }
Comment
Your answer
Follow this Question
Related Questions
Rolling Cube with Rigidbody? 5 Answers
Enemy circeling around Player 0 Answers
defining a relative axis of rotation 1 Answer
Image Rotate Gallery Snap 0 Answers
Camera Orbit Rotation Problem 0 Answers