Framing transposer with roll ?

I have a camera set up with the aim set as hard look at to a “camera target” object, and I have a framing transposer following the player spaceship, now I want the framing transposer to position the ship in a specific region using the soft zones and I also want the camera to roll with the spaceship, how can I achieve this?

You could try putting “Same as Follow Target” in Aim.

Thanks for the reply!
I will try this later, but I think it will aim at the spaceship, and I want it to aim at the reticle(camera target)

So this works, I don’t understand why, but it does :slight_smile:

Probably because Framing Transposer starts every frame with the Aim set by Aim component, then makes a lateral adjustment of the position to accomplish the framing.

Thanks for the explanation!

I got confused because the documentation stats that it only moves the position of the camera,
so if i understand correctly it first takes the rotation from the Aim property, and than applies it own transformation?

and just for future reference, when the Aim property is set to “Same As Follow” it will sample the rotation from the follow target, meaning that in my case it will always be centered to screen.
So in a case I would like to have the reticle(Camera Target) not centered to the screen (I would need this for mouse control), what would be my Cinemachine setup?
Or should I make a dummy object as the “Follow” target (body property) that moves and rolls with the spaceship but its forward points to the camera target instead of the spaceship forward?

Yes that is correct.

It won’t be in the center of the screen if you adjust the Framing Transposer’s Screen Position property to be off-center.

The best way to do a 3rd-person setup that implements precise aiming via a reticle is with the Cinemachine3rdPersonFollow behaviour. This is essentially a stiff rig attached to the follow object (which would be an invisible child of the ship, positioned directly on the ship). You would implement a custom behaviour to control the pan and tilt of that child object, which would result in panning and tilting of the camera rig. See this excellent tutorial:

https://www.youtube.com/watch?v=537B1kJp9YQ

1 Like

thank you for the explanations and help !