- Home /
Is there a way by which we could control/move Cinemachine FreeLook Camera using TouchField/TouchInput for mobile?
This question is based upon the query raised in the thread: https://answers.unity.com/questions/1386147/how-to-move-cinemachine-freelook-camera-with-touch.html?
One great solution was provided by Jean-Fabre: http://answers.unity.com/answers/1486076/view.html
I added the script mentioned above, on my main camera! The touch input does make camera move on both X and Y axes. But, it overlays the UI Canvas components. I have a virtual Joystick, placed at Bottom Left Corner of Canvas, that is responsible for Player Movement! When I use use Joystick for movement, it also changes camera positions/angles/orientation, along with player movement.
Is there any way by which we could define a touch-field area, as in certain portion of screen where we can touch anywhere on screen, for camera rotation, instead of whole screen (for example: restrict some portion of screen, where Joystick is present, about 30%-40% screen on left hand side, and rest 60%-70% screen on right hand side, that could be used for rotating free-look camera)?
Hoping for a fruitful response!
Kind Regards!
Hi, were you able to solve this problem? I have been stuck with this same issue for a long time and I cant find any solution even though its been asked so many times. My problem is the same, trying to use cinemachine freelook cam to orbit around 3rd person character but the camera rotates when interacting with UI objects like a virtual joystick or button. Any tip you can give ?
Answer by realgid0317 · Nov 10, 2020 at 01:35 PM
@Jean-Fabre hey sir can you explain about this thingly questions? and sorry about the tag hope you can answer this
Your answer
Follow this Question
Related Questions
Adapting camera movement to touch input 0 Answers
Mobile Input - Sensitivity, Gravity Matching InputManager's Key 0 Answers
When applying a force to an object on Touch, how do I add a *cooldown* to it? 0 Answers
Camera won't follow character 2 Answers
Rotate camera but view should be static 0 Answers