- Home /
How to Keep the Camera Centered and Moving When the Player Is off to the Side?,How to Keep the Camera Centered While Moving the Player?
Hello everyone!
I'm going for an endless runner game and I'd like the camera to follow the player when the player is off to the side (see image 1). When I first started, I dragged the 'main camera' under the Player object making it a child object. it worked but the camera would jump with the player. is there a line of code that can make the camera follow the player this like this:
Cinemachine from the Package $$anonymous$$anager is really good. You can find out more here: https://learn.unity.com/tutorial/cinemachine
Your answer
Follow this Question
Related Questions
When I lock my camera to my player I saw only my default backround please help me :( 2 Answers
How to rotate the camera with the player smoothly without the camera snapping back and forth? 2 Answers
help! how to set cinemachine freelook velocity. 1 Answer
How to control missile/knife (Quaternion.Euler) 2 Answers
Camera move & rotate along vehicle 0 Answers