2.5D Platformer — #12 Cinemachine

This article will demonstrate how to use the Unity Cinemachine to create a camera that follows the character.

Firstly we will need to add the Cinemachine package to the project via the Package Manager.

Next, we will add a Cinemachine Virtual Camera. Once added, notice the new icon on the Main Camera and if you click on the Main Camera, there is a CinemachineBrain component added.

With the Virtual Camera selected, we need to drag the Player into the Follow and Look At settings, set to World Space, and adjust the camera’s viewing angle.

We make the camera look slightly ahead and be a little higher to see more of the platform.

This is the final result.

If you enjoyed reading this article give me a Clap, also if you would like to see more, “Follow” me, so you may be notified of future releases. You may also send me a message if you need any further help.

I am available for your next chart-topping game!

--

--

--

A Data & Analytics Consultant who is expanding into developing experiences in XR, Enterprise and Gaming space using Unity www.jeannoelseneque.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Best API for Web Development & Software Engineering.

Best API for Web Development & Software Engineering.

Top 10 Native Mobile App Development Companies

This is not a New Year’s resolution

How to start working with Python Django

7 Powerful Python Libraries — Guaranteed to Make Work Life Easier

PySpark Broadcast and Accumulator

Fast Lane to Coroutines

Understanding the basics of Coroutines family

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jean-Noel Seneque

Jean-Noel Seneque

A Data & Analytics Consultant who is expanding into developing experiences in XR, Enterprise and Gaming space using Unity www.jeannoelseneque.com

More from Medium

Creating a Mech Hangar Room

Making a 2.5D Character Controller in Unity Part 2

Adding a new ability to our prototype — The Triple Shot

Working with Unity’s 2D Tilemaps