Hey there,
I just upgraded to cinemachine (2.6) and added new input system (1.0.0).
I setuped keyboard/mouse ad gamepad controls. Hooked new Cinemachine Input Provider into a Freelook camera.
When i run game, freelook camera (3rd person) is flying around on the smallest movement of mouse or gamepad stick. It looks like sensitivity went crazy. It worked like a charm on old input sytem
Am i misssing something? In a blog post i read that there should be some example for new imput system shipped with CM 2.6 but i cannot find it.
Some relevant settings:
mouse in Input Action is used through Value/Vector2, Delta Mouse and it is Normalized Vector2 (without normalizing mouse is even more sensitive
i just have a second thoughts on how to describe this problem. it looks like that camera is moving with a constant speed in gameā¦ probably caused by Normalize ā¦ so either its moving on axis with Input Axis value 0 or 1 ā¦ nothing between, that could cause that weird movement at the first place.
but on the other side, when i disable normalize, camera is going crazy how i described it before. its almost imposible to control it with the mouse
Thank you for your help. I really appreciate it.
Changing MaxSpeed to ValueGain is making camera even crazier ā¦ like sensitivity 3000
Anyways. i replicate this problem in a new project, made a github repo with cinemachine as default without new input system.
then i made a branch where new input system is implemented and cinemachine is configured to use it. i didint do any special settings (expcept orbits for rigs). also created two videos with different behaviours.
Note: input value gain interprets Speed as a direct multiplier for input values. You canāt leave it at 300! Put it way down. Start with 1 and see what happens. Also, normalizing the input is a bad idea, as you indicated. Leave it un-normalized.
yep, when i set Value gain, i put input values to 1, as a part of testingā¦ but it was still way off. on th ether side, i was changing it in play mode, but that should be fine, right?
also i got rid of normalize in repos, so it should be fine to test
im not totally satisfied with the result as it is not as smooth as it was without input system, but with your advices its still a way better then what i was able achieve with input system so far.
i eneded up with these settings (default windows sensitivity with 800dpi mouse)
And for the gamepad in Input Actions, i had to set up Processor Scale Vector2 so these new Speed settings will be scaled:
(will probably play more with these scaling to fit my preference)
so leaving this here as it may help someone in future
Well, why do you scale it so much? Youāre having to divide it by 1000 in the Y axis. Why not scale it by 0.1 instead, and have more reasonable values in the FL axes?
hmmā¦ i understand what you trying to say, good idea.
Those FL axes was initially set up to cover mouse and its movement. mouse is without any scaling, so with those values from my image above, it work somehow ok.
then i tried to control camera through gamepad, and it almost didnt move, so thats why i applied scaling there.
but yes, i can scale both mouse and gamepad separately for some values like you advising and then have more reasonable values in FL. and im going to do it
Yes, I think the FL should have reasonable values, and itās up to you to set up the input system to feed FL consistent values, accounting for the differences in the input devices.
I can confrim that there is a huge difference in speed of camera movement between old and new input system.
Had to tone speed down a lot to get similar results (enclosed).
I use same settings in Input System as Escuriak: Value, Vector2, Delta [Mouse].
Values from Input action I can se in āInput Axis Valueā in camera component are much higher than in old Input system and never decimal. Somewhere between -20 to 20.
Hello @urilache
Using Cinemachine 2.6.9, we setup a gamepad with the new input system and hooked it to a Cinemachine Freelook camera and we are not seeing the behavior you are currently experiencing. Even if we change the game FPS, we ahve constant behavior. Even changing the Update Method give us constant behavior.
Could you sent screenshot of you Cinemachine Freelook inspector so we can have a look at it?
Attached is the setup I used for the Camera.
Please note that the issue happens when using the mouse to rotate the camera (sorry, missed adding this info previously). Gamepad does not present this issue.