Тёмный

Unity Third Person Tutorial - Third Person Controller with Camera in Unity3D 

Deniz Simsek
Подписаться 1,6 тыс.
Просмотров 25 тыс.
50% 1

We'll combine the Camera and the Movement script to get a simple Third Person Controller. You can use this structure as a base for prototyping your ideas.
Next, I am planning to add a 3D character with movement animations.
Contents:
00:00 - Intro
00:21 - Scene Setup
01:18 - Third Person Camera Setup
02:53 - Player Movement Setup
05:38 - Rotate player to the direction of the movement
07:40 - Apply smooth rotation
09:34 - Rotate player to the direction of the camera
12:36 - Add Jump functionality
16:03 - Final Result
Resources:
- PlayerController Script: gist.github.co...
- CameraController Script: gist.github.co...
- Unity CharacterController.Move Documentation: docs.unity3d.c...

Опубликовано:

 

17 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@LoganLatios
@LoganLatios 2 года назад
that bean be lookin kinda *SUS*
@LunchBox77
@LunchBox77 11 месяцев назад
Dude this might be the most straight to the point simple tutorial I've come across. Awesome job.
@recore67onload
@recore67onload 2 года назад
Finally, everyone else used cinemachine which can be a headache to improve, but you provided a really great alternative. Thank you dude
@wtfcrazygaming
@wtfcrazygaming 2 года назад
Dude you're awesome. Please don't stop making videos, you're like a reborn Brackeys.
@DenizSimsek
@DenizSimsek 2 года назад
Thank you! I needed that 🥲
@jyamas1382
@jyamas1382 2 года назад
these 3 videos saved my day!! was so filled with frustrations it's insane. so well explaind dude :) you are an absolute legend
@DenizSimsek
@DenizSimsek 2 года назад
Wow thanks!
@swift0294
@swift0294 2 года назад
This worked for me. Matched the coding I had but helped me find out what was wrong. I was struggling with this for weeks. This code is similar to someone else but i got lost in their tutorial due to it being over complicated.
@iwishmilkcookies1569
@iwishmilkcookies1569 Год назад
Absolute gigachad. Every other video either used Cinemachine (which conflicted with scripts) or had references used in their code to scripts they had made prior. This was really helpful and made it less of a headache to implement the player and camera logic!!
@madona3921
@madona3921 3 месяца назад
THANK U , the only tutorial that worked for me !!!
@timvanbuitenen6652
@timvanbuitenen6652 2 года назад
hey Deniz Simsek. Im just starting out with unity And I wanted to encourage you to keep making your videos about the fundamentals. You really break down the code per element, so as a beginner we understand what happens and we know exactly why which piece of code is where. So we can begin to understand, construct and deconstruct the code. Big thumbs up I'm sure you will get a lot of subscribers!
@DenizSimsek
@DenizSimsek 2 года назад
Thank you for the encouragement man. Appreciate it!
@Glasraf
@Glasraf 7 месяцев назад
​@@DenizSimsekIt made my x-axis and y-axis reversed
@pigeon_cheesburger
@pigeon_cheesburger Год назад
Thank you so much! I just started coding and tutorials like this just make my day.
@lucineialufiel644
@lucineialufiel644 2 года назад
this bean is a bit sussy
@rahulretz5211
@rahulretz5211 2 года назад
Your videos are easier to understand thanks for your effort 😊
@DenizSimsek
@DenizSimsek 2 года назад
Thanks!
@WerrinLotsuvhats
@WerrinLotsuvhats 10 месяцев назад
Thank you for the tutorials. easy to understand and helps a lot
@Gocuk02
@Gocuk02 2 года назад
Unity öğrenmeye başlayalı 3 gün oldu, günümün %90 ı unity ile geçiyor. Umarım videolarınız devamı gelir.
@DenizSimsek
@DenizSimsek 2 года назад
Yardımcı olabildiysem ne mutlu. Bence oyun geliştirmek hayattaki en güzel uğraşlardan biri. Videoların devamı gelecek, takipte kalın 👍🏻
@simoncuello1036
@simoncuello1036 Год назад
Thanks man this helped a lot keep up the good content
@abdessamadcherrat5275
@abdessamadcherrat5275 2 года назад
I don't know why it not working why the player isn't moving?
@skylo706
@skylo706 2 года назад
Thank you for not using Cinemachine. My Version has this bug, that I cannot open the package manager, but I don't have enough disk space atm to upgrade, so cinemachine falls flat, though every tutorial on this uses it. Thanks to you, I can use Code instead for now until I get this fixed
@user-pg6in6fm2x
@user-pg6in6fm2x Год назад
How would I make the camera not clip through the environment?'
@animen6174
@animen6174 2 года назад
amogus
@DenizSimsek
@DenizSimsek 2 года назад
Red sus
@ziplocksadventures2321
@ziplocksadventures2321 2 года назад
that player looks a bit...... SUS
@talismanskulls2857
@talismanskulls2857 2 года назад
how do we get these cameras to find a cloned player that is loaded from a selection? Every time I try and use one even with a prefab that has the character target transform, it fails to save in the prefab and also stops following the player.
@user-oz2io3oc4v
@user-oz2io3oc4v Год назад
this is the only vidio i could find that works \_ () \_
@DieserDeutscheTyp
@DieserDeutscheTyp Год назад
Thanks thanks thanks thanks xD
@rusydirosli9423
@rusydirosli9423 Год назад
Great result dude👍👍👍... Now i just wonder how to make that camera not just facing and rotation around player, also try to chase the player whenever player vector3 is moving... Did u know how to do that?
@joaquinsuarez2064
@joaquinsuarez2064 2 года назад
Help please What does this error mean? InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings. PlayerController.Movement () (at Assets/Script/PlayerController/PlayerController.cs:44) PlayerController.Update () (at Assets/Script/PlayerController/PlayerController.cs:33)
@toastcharmsdigitalentertai2062
@toastcharmsdigitalentertai2062 2 года назад
something with input manager in unity , since the script in here uses a different way to use player input , idk how to fix the problem , try disabling input system package in prefrences or asset manager
@collosalcake236
@collosalcake236 2 года назад
Basically you probably have installed the new input manager package. Try uninstall it and see what happens.
@dooman4611
@dooman4611 2 года назад
Hi there, I dont really understand how to copy the code inside the script, can anyone help me? Should I remove the initial lines and copy the script?
@kokoelbanna
@kokoelbanna Год назад
Hiw to make camera move up and down
@esartist
@esartist Год назад
u need to change the pubblic class in CameraController script link, because there's an error ;)
@paydayoverkill
@paydayoverkill 2 года назад
keep getting a message where the script class can't be found. The class name matches the file name. I'm so confused
@dkordy
@dkordy 2 года назад
why did not implement Invert mouse movement ?
@SkyPoly
@SkyPoly 2 года назад
my main camera is colliding with the terrain how can i fix this?
@OakDoubleA12
@OakDoubleA12 Год назад
how do i get materials for the player and ground?
@strengthgamingden
@strengthgamingden 2 года назад
Thanks bro.
@gamedevunity3dliviopanizzi170
@gamedevunity3dliviopanizzi170 2 года назад
good morning friend, I have implemented the scripts, but I have a problem the camera wobbles, moves up and down, in short, it is still, how can I solve the problem? thanks friend great job
@mcheeto
@mcheeto 2 года назад
Hey! The same thing was happening to me. Rigidbody might still be active on your player. Make sure to remove that component.
@davhsfrdhsr00
@davhsfrdhsr00 2 года назад
When I add the jump function my character slowly starts sinking through the floor. Any solution for this?
@Jayblu360
@Jayblu360 Год назад
maybe add a ground
@davhsfrdhsr00
@davhsfrdhsr00 Год назад
@@Jayblu360 lol thanks
@joeman123964
@joeman123964 Год назад
thanks for the videos! I am gonna be honest I coded a lot myself and it isn't exactly what you coded, i just need the forward movement functionality lol. so iwatched a few minutes only. HOWEVER i decided to go to watch all 3 videos out of curiosity and noticed you DID NOT use cinemachine. THANK YOU cinemachine is a gag for youtubers to quickly make content and get views, they do not tell you the hard truth (what i learned) as a game developer, you are NOT allowed to sell you video game for commercial use if you are using cinemachine! You must get proper permissions and licenses from Unity in order to use it; in addition, you may need to pay them fees annually to keep the assets. Lastly, licensing are subject to change and in the legal papers, once you agree to one version is auto signs all future ones. (states it in the form you can view it online). so they can increase chargers by $20 monthly if they wanted to. and if they were to alter cinemachine in anyway, you would have to update the asset causing you to have to go back and edit the code to form to the new functionality which is a PAIN. so good job teaching people WITHOUT plugins and assets. very good tutorials.
@marcoshenrique4953
@marcoshenrique4953 2 года назад
thumb is kinda sus tho
@rahulretz5211
@rahulretz5211 2 года назад
Bro can you able to make a video on clamping camera without using math.f plz😐
@danielmunoz9939
@danielmunoz9939 2 года назад
Hey, i have a problem, there is a camera jitter and i don´t know why is that, in your video that problem didn´t exist, and is very annoying to solve apparently
@danielmunoz9939
@danielmunoz9939 2 года назад
Forgot it, i had the rigidbody active .-.
@ChrisPlayzBLOX
@ChrisPlayzBLOX 3 месяца назад
5:14
@the-ghost-ryder
@the-ghost-ryder 11 месяцев назад
did not work
@JustFun-kx2hp
@JustFun-kx2hp 2 года назад
Türkçe ögrenmek guzel ya. Bence turkçe konuş videolarinda. Çünkü inglizce yeteri kadar içerik var.
@i-like-Classic-roblox
@i-like-Classic-roblox Год назад
Among us
@ELMlKO
@ELMlKO 2 года назад
Amogus
Далее
I Built a Transparent Boomerang (it's lethal)
13:10
Просмотров 3,6 млн
THIRD PERSON MOVEMENT in Unity
21:05
Просмотров 1,4 млн
❌Разве такое возможно? #story
01:00
I Tried To Beat Minecraft Backwards
18:53
Просмотров 1,2 млн
Simple Character Controller with Double Jump in Unity
18:48
10 Minutes vs. 10 Years of Animation
19:29
Просмотров 834 тыс.
THIRD PERSON MOVEMENT in 11 MINUTES - Unity Tutorial
11:07
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 704 тыс.
❌Разве такое возможно? #story
01:00