ThirdPerson cam lock enemy

Hi there!

I need some help with cinemachine to set up a Lock Target camera like in Action-Adventure games.
I already searched on the web for some tutorial but nothing work correctly.
My character move is done by script, no root motion.

Here what I’ve already try without success. The result on the left is the closest to what I’m looking for.

4983440--486038--Cinemachine.jpg

Can you describe exactly the camera behaviour you want?

I need the camera follow the player when look at a target and keep both in the field of view.
And collide with the environement.

Have you tried a FreeLook following and looking at a CinemachineTargetGroup that contains both the player and the target in question? You can put a CinemachineCollider on that.

Yes, I try this. But with Group composer, the FreeLook does not reach to keep the player and the target in the field of view when the player move. And when I rotate the camera, it goes crazy.

This is probably because your settings are not correct. Perhaps you could put together a small test project that you can share, so we have something more concrete to talk about. Otherwise I’m just stabbing in the dark.

Here a sample scene in Unity 2019.1.8f1.
Don’t pay attention to the CharacterController, it’s not definitive.

Hope it will help you to see what I’ve done wrong :slight_smile:

5020310–491663–CinemachineTarget.unitypackage (3.91 MB)