- Home /
Question by
Rocketman_Dan · Feb 09, 2019 at 09:16 PM ·
cameraapicamera-lookmouse-look
How can I get Cinemachine Free Camera to stop following mouse position?
So either turn off the look functionality or make it so that it's click and drag. I understand the second option is probably more of a pain than the first.
So far I've tried logging the last know values of the X and Y axes and while a button is held the values are reset to that last logged value but this works only once and as soon as I move the mouse again while doing this it continues to follow.
My next idea is to programatically enlarge the dead zone to the edge of the screen when in the mode where I don't want the camera to follow the mouse but I can't find how to access dead zones in code.
Are either of these the right way to do this? If not what is the right way.
Thanks, Dan
Comment