cinemachine : l want to lock Y position

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

Did you look at the CinemachineExample scenes? Look at 2DConfiner scene. You can use a confiner to constrain the camera position.

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 :slight_smile: thank you!!