J
J
jdanilaj2021-06-28 21:42:17
C++ / C#
jdanilaj, 2021-06-28 21:42:17

How to connect CM to two characters in a unit?

I have two characters and I want the Unity Cinemachine camera to follow them. But when I do through a group of objects, when switching to the second character, the camera is directed sharply at him, and she also does not follow the player, but follows the place in the middle between both characters. How to make everything run smoothly? The camera first follows the first, and then the second without sudden movements

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GFX Data, 2021-06-29
@ShockWave2048

There is LookAtController. For each camera target there is a weight from 0 to 1. You need to smoothly change the weight of the first 0..1, the second 1..0, then the camera will smoothly transition.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question