Search Unity

Question Switching between multiple Cameras

Discussion in 'Cinemachine' started by lecramr, Aug 9, 2023.

  1. lecramr

    lecramr

    Joined:
    Jun 22, 2023
    Posts:
    7
    Hey,

    I am trying to create a system to switch between different camera positions as smoothly as possible. I first started using Virtual Cameras, which worked sort of ok but the problem here is that I first did not figure out how to smoothly stop the camera midblend. And the second issue is that I can not change the blend camera midblend and smooth switch over to the new one. So to get more freedom about the movement it looks like Cinemachine Path is the way to go. With Cinemachine Path I can if the user needs to switch camera dynamically create a path between the current position and the wanted and let one virtual camera move the path. There are two Cinemachine Paths, and I have trouble with both of them.
    Cinemachine Smooth Path: Is sometimes making extrem curves around the target instead of going pretty directly to it. As stated in the Screenshot. So I thought of going with the Cinemachine Path, which directly move towards a Waypoint. But here is the Problem how would I go about while the Move is in Progress the User switches to a different camera and I would like to make it as smooth as possible. How would I need to recalculate the tangent of that waypoint? How would I go about changing waypoints on the fly? I attached a Image which hopefully explains my problem, thanks in advance!
     

    Attached Files:

  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    This doesn't sound right. You should be able to do these things without using paths.

    Can you give a little context about the problem you're trying to solve? Please show a diagram of the camera positions and describe the behaviour you would like to have. Maybe there is a simple way to achieve it.