Creating a Third Person Camera (Unity Tutorial)

preview_player
Показать описание
In this Unity game development tutorial we're going to look at how to create a third person camera. We’ll look at how to have the camera orbit around the character, how to zoom in and out, and how we can make the character move in the direction the camera is facing.

The project is available here:

The script is available here:

Help support our work:

Follow us:

Introduction - 0:00
Initial set up of the Free Look camera - 0:39
Script adjustments for 3rd person movement - 2:55
Realigning the camera direction - 6:24
Resolving camera occlusions - 7:00
Adding gamepad support - 8:44
Summary - 10:30

#KetraGames #LearnUnity #UnityTutorials #UnityTips
Рекомендации по теме
Комментарии
Автор

Incredible unity tutorials. Best on YouTube. This channel is a hidden gem and deserves more views. So glad I found this channel I’ve been learning so much. Thank you 😊

RenadoMalo
Автор

I spent hours trying to figure this out by myself. Watched the first minute of this video and now I have a working camera. Will definitely watch the rest of the series.

Grimmage
Автор

Nice tutorial. I was really struggling to understand how to use the camera to rotate my character, didn't think it'll be that simple.

hna
Автор

This video, this series, and in fact your entire channel are INCREDIBLE! easy to understand and follow, as someone who learns by repeated trial and error, having short concise easy to follow Step - by - Step is extremely helpful. Thank you so much for all you do.

also there is a crazy "Rotates Constantly Bug" in the input manager in unity for some controllers. if this happens to you (your probably on a PS4 controller) change X axis to axis 3 and Y axis to axis 6. this will resolve the issue.

I hope this helps people in the future to avoid the Detective work I just went thru.
thank you again for the awesome tutorials.

ArcticWolf
Автор

I wonder why CineMachine is Default Inverted on X-Axis. Feels like its more common for this to not be for most games? for anyone that needs to fix it untick Invert under X Axis in the Inspector while having the Cinemachine Game Object selected in the Hierachy.

BNTO
Автор

Amazing series. Got this far in one night and still going :)

darklordxark
Автор

Hi, for those using the new input system there's an easy fix.
1. On the Freelook camera add a new component called Cinemachine input provider
2. We will be adding a new input action to the XY axis slot
3. Create a new input action in the asset
3.5. Name it(duh)
4. Create a new value or pass through and make the control type a vector 2
5. Add a mouse input using Mouse -> delta and controller input using what ever you want it to be for it was right stick.
6. Drag or input the new input action into the input provider xy and you should be good.

bunzy
Автор

Really easy to understand. Awesome work!

MatheusNavarroNienow
Автор

Great video keep it up, really like your tutorials, and if you ever do a full course on C# for unity let us know, you teach really well!

STARmod
Автор

Thank you Thanky you Thank you! this is by far the best third person camera tutorial on youtube ^^

Marvin_Hermann
Автор

Great tutorial, i Have a problem in the gamepad input, the 4th axis joystick is non stop rotating, and the controller it's not working

mrbernaba
Автор

You saved me! I tried to figure out how to make camera realigning and it is so simple.

roberttongel
Автор

Fantastic video. Only problem I'm having is the camera movement is inverted (when I move my mouse right, the camera moves left). It doesn't happen with the player movement though.

Derekstefan
Автор

thanks a lot thats what i wanted it would be awesome if you make a video of how to couchwalk or maybe slide

renderhead
Автор

Great tutorial, I only have 1 little problem. After I rotated my character a bit I cant go straigth ahead anymore if I put the camera on orbid simple follow. If I disable this I can go straigth again only I want the camera to follow :P

Zeepblok
Автор

Thanks for showing about CineMachine .. and you should mention CineMachine in the title, as i am sure you will get more views from doing that :)

inferbee
Автор

Thanks for the tutorial, this was really helpful. One problem I have is that whenever I move, my character doesn't animate and says I need an "Input Magnitude" parameter. How can I resolve this?

VLSCO
Автор

great and awesome tutorial! Easy and straight to the point
I have a question, is it possible to have the cm freelook to follow different character objects?
Let's say my game have a character selection screen where I can choose different characters, once I click confirm how can I tell cm freelook to follow the selected character?

john_doe
Автор

Very useful tutorial. I was wondering how I can switch from 3rd person view to actual become the character while using a VR headset?

paulclark
Автор

This video helped me so much with starting my game, I just got 1 tiny problem my character is rotating to the wrong position for example when I am walking forward the character is looking to the right. Is there a way I can fix that?

MikesytT