When rotating at very fast speeds Cinemachine will switch directions to get to the current rotation.
Is it possible to prevent this in Cinemachine or does it require a custom camera script?
When rotating at very fast speeds Cinemachine will switch directions to get to the current rotation.
Is it possible to prevent this in Cinemachine or does it require a custom camera script?
Do you have some video of this happening? I don’t quite understand what you mean by “switch directions”. Do you mean that you’re rotating so much faster than the rotation speed that the camera switches from eg. clockwise to counterclockwise rotation because it’s shorter to rotate that way?
You could for sure try to turn down the damping. You could also have a script that modifies the damping values if you’re rotating too fast.
Alternatively, you could write your own cinemachine rotation component. The easiest thing there would be to copy the CinemachineRotateWithFollow component you’re using, and then make some changes to it so it matches the behaviour you want. the big advantage with that is that such a component can know about other details of your game, and use that to make better decisions (like if you want to rotate the same direction as the player.