Boxing Fight Camera

Hello everyone, I’m new with Cinemachine and I’m trying to create a vcam that works like the UFC games. An example: Link

I have a Target Group with the two fighters and for Aim I use Group Composer, but I don’t know what to use for Body to always keep the camera at the side of the fighters when they make side steps. I tried changing by script the Body Heading Bias based on the angle that’s created by the two fighter transforms but it’s not smooth and I’m sure it’s not the correct way to do it.

1 Like

I would keep the target group for the aim, and create an invisible object to use as a Follow target. Have a custom script on the follow target position itself at the average position of the fighters, and orient itself to always face in a direction perpendicular to the line joining the two players (i.e. it always faces to the side). Use a Transposer in the Body, with LockToTargetWithWorldUp Binding Mode. You can have some angular damping to soften the movement.

1 Like

Thanks @Gregoryl that worked great!

1 Like