Fixing FreeLook Camera to the back of a tank turret

Hello people,
i am writing here because i did not found any solution to my problem.
Basically i want my FreeLook camera rotates togheter with the tank turret along the X axis.
Here is a video about this problem: Imgur: The magic of the Internet (Don’t care about console errors, i already fixed them).
The closest solution that i found is in this thread ( How to lock free look mouse rotation and set camera behind player? , posted by Gregoryl) but i don’t see the option to recenter X axis instead of the Y.
Any help?

Hi
Have a look at our examples scenes: aimingRig. It uses the ThirdPersonFollow component for body, which is specifically for these kind of situations.
You will need to control the turret with your mouse input, and set vcam with ThirdPersonFollow to follow the turret.

Other example scenes that are related and potentially useful: 3rdPersonWithAimMode, DualTarget.

You may need to update your Cinemachine package to see these example scenes. :wink:

Maybe is it better with a standard virtual camera (that i managed to lock to the turret: Imgur: The magic of the Internet) and a script component that could replace the FreeLook camera main feature (rigs)?

Because at the moment i am focusing on developing keyboard controls, then when i move the turret with the keys the camera has to follow the turret without any damping.
But later i want to develop standard Mouse controls (move the camera to aim and turret will follow with a delay caused by max rotation speed of turret ).

I want to attach in both modes the FreeLook camera rigs feature to move the camera up (to see better behind near walls etc.) and down (to aim better at long distances).

I agree, it’s best in this case to simply parent a static vcam to the turret, and have a custom script to adjust its offset. FreeLook is overkill.