How do I make it so that Cinemachine locks onto the mouse and make it so that the player rotates with it on the y but only the camera moves on the x-axis and only to a certain degree?
Ps. This is a 3d 3rd person movement
How do I make it so that Cinemachine locks onto the mouse and make it so that the player rotates with it on the y but only the camera moves on the x-axis and only to a certain degree?
Ps. This is a 3d 3rd person movement
You can use a vcam with a 3rdPersonFollow behaviour. Use an invisible child object of the player as your follow target. The camera will be locked in relation to that child object, so you can rotate it as you please, independently of the player.
See the AimingRig sample scene that ships with Cinemachine. See also this tutorial: