How to transition from top to side view like Crash Bandicoot?

Hello!

I’ve been playing around with Cinemachine and it looks really powerful. I would like some guidance in how to setup cameras to achieve the following effect:

The camera slight rotates as he climbs the stairway until it transition from top to side view.

My approach was to setup 3 VCAM: Top view, Side view and one positioned at the stairway looking at the player:

VCAM Top view

VCAM Side View


VCAM Stairway

And i have a few Cinemachine Trigger Action responsible to change VCAM priority

My questions are:

  • How would you achieve this effect?
  • Is VCAM + Trigger Action the right tool for the job? I tried to use ClearShot but it doesn’t seem to work with following target
  • Is the VCAM Stairway really needed?
  • I’m finding hard to change the active camera using colliders, like, detecting entry + exit side. Is there a better way to do it?

Thank you for helping !!!

Sorry for the slow response.

Generally, your approach is good. In the inspirational video, the movement on the stairs is a little more refined. The camera seems to align itself to be always directly behind the character (ignoring the character’s flipping). That gives a nice effect. One way to achieve it is to create an intermediary invisible target with a custom script to always match the character’s position and yaw, but with zero X and Z rotation. Then the vcam can have an ordinary transposer following the intermediary target at a fixed offset from it in its local space.

For the triggers, a good approach is to overlap the trigger zones slightly, and each one should enable its vcam on enter, and disable it on exit. That way, they will chain nicely. The most-recently-enabled vcam will dominate the others at the same priority.

1 Like