- Home /
Rotate camera with iOS touch
Hi , I was wondering how can rotate camera with touch instead of right joystick ??
Could you make your question more specific? That's a really vague question.
I mean touch the screen to rotate the camera ins$$anonymous$$d of Right joystick
Answer by cj_coimbra · Sep 14, 2011 at 12:18 PM
Inside the TouchPhase.Moved you could Lerp the rotation of the axis you need and then overwrite the object´s rotation.
There is a delta value ready to use for touch phases.
However you should use a delta calculated every frame instead of getting the total delta, or you will get some not-so-smooth rotations...
Sorry I am novice is there any sample code to attach the FPS and works fine ?
I think there is that $$anonymous$$ouse Orbit script that does the job sufficiently. It might be on Standard assets if I remember right.
Your answer
Follow this Question
Related Questions
Keep camera horizontal with RotateAround 1 Answer
Touching an object with your finger? 1 Answer
Magnifying Glass Unity iOS 0 Answers
Best way to get to get touch inputs? 1 Answer