Search Unity

cinemachine : l want to lock Y position

Discussion in 'Cinemachine' started by makizume, Apr 16, 2019.

  1. makizume

    makizume

    Joined:
    May 9, 2018
    Posts:
    26
    I would like to know how to lock Y position through Cinemachine.
    currently, I am working on a player keeps bouncing floors and using Cinemachine to follow the character movement.

    could you please someone help me how to set up?
    1. cinemachine should follow the player.
    2. cinemachine only look at the center of the floor.
    3. I don't want the camera to move Y position when a player is bouncing. I want a camera to sit still.

    I know it is pretty basic, but I could not figure out.
    please kindly help me.
    thank you
     

    Attached Files:

  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    Did you look at the CinemachineExample scenes? Look at 2DConfiner scene. You can use a confiner to constrain the camera position.
     
  3. makizume

    makizume

    Joined:
    May 9, 2018
    Posts:
    26
    Thank you so much for your comment and I apologize for the late response. I will take a look at 2Dconfiner scene, then. once I do that, i will come back :) thank you!!