Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

First person cutscene

Discussion in 'Cinemachine' started by Riario93, Jun 8, 2020.

  1. Riario93

    Riario93

    Joined:
    Apr 6, 2019
    Posts:
    21
    Hello everyone,

    I am building a FPS horror game and I want to implement some cutScene animation during gameplay. from the uploaded pictures you can see my Player and camera setup I am using (With cinemachine).
    F41CB379-F4E7-48EF-A2C2-96DA72DCEA58.png B2721740-DCA8-4EA0-81AE-131CA64ED256.png
    the cut scene i want to do is simple. once out from a door I will trigger an animation/Timeline and the player with camera will automatically move forward. The animation itself is pretty simple to do with or without cinemachine.
    WHat I am not sure about is how do I smooth the camera from "Gameplay mode" to Animation if you know what I mean. Main reason for that obviously is that is impossible to pass the trigger with the same Transform of the animation at start. So I need something that will link smoothly the transform from gameplay to animation.

    Also once the animation is done I want to keep play from the last transform of the animation.

    I hope I can do this with the same camera of the player without using multiple cameras.

    thanks guys
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,268
    I don't really understand your question. Because the CM vcam is a passive (i.e. DoNothing) child of the player, it will by carried along with the player, just like any other transform child. If you animate the player smoothly, the camera animation will also be smooth.
     
  3. Riario93

    Riario93

    Joined:
    Apr 6, 2019
    Posts:
    21
    The smoothness I need is not when the animation is started already but Smoothness from when I am playing to when the animation starts so the camera doesn’t glitch straight to the new angle.

    Unless I can tell the animation window to take the current transform position and rotation (on triggeEr enter) as first key frame
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,268