Unity 3D 3rd Person Camera (Position, Movement, & Rotation)

preview_player
Показать описание
3rd Person Camera Control might seem tricky at first. But, today I'll share the code that worked best for me - As always, thank you so much for watching, and hope it helps :)

If you enjoyed this video, I have a small 1$ Member perk available for anyone who would like to help us save up for Facial Motion Capture :)
(Just click the "Join" Button next to "Like"!)

Free Rigged Blender Male & Female Base Model:
Blender RIGGING & ANIMATION SERIES:

T-SHIRT LINKS HERE:

If you're a gamer, please check out my new game on steam! It took over 3 years to create and has thousands of hours and heart put into it :)

As always, thank you so much for watching, please have a fantastic day, and see you around!

- Royal Skies -
-------------------------------
I make no claim over the following footage as it belongs to their corresponding content creators and can be found below:

Copyright Disclaimer: Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use.
Рекомендации по теме
Комментарии
Автор

For anyone wondering, yes, you can use SmoothDamp or MoveTowards instead of Lerp if you want your camera to have different kinds of movement! I just used Lerp because it works pretty well for me. But, feel free to try the other two methods if you prefer it-!
Code below :
{
public Transform camTarget;
public float pLerp = .01f;
public float rLerp = .02f;

void Update()
{
transform.position = Vector3.Lerp(transform.position, camTarget.position, pLerp);
transform.rotation = Quaternion.Lerp(transform.rotation, camTarget.rotation, rLerp);
}
}

TheRoyalSkies
Автор

Wow, finally a video on a third person camera that doesn't start with "Get the Cinemachine package"

snipplerifsky
Автор

I could not love a human baby as much as I love these tutorials

jasonwilliams
Автор

"It feel like I'm learning more from you guys, then you are learning from me."
Well in the immortal words of that great song.
"You teach me, and I'll teach you."

TheGamersShade
Автор

okay, i'm here 3 years too late, but JFC! I just spent hrs (and a LOT MORE SCRIPT) doing exactly this, not being happy with the results ... and you've got it in like a tenth of the amount of effort. (THANK YOU!)

alyssafaden
Автор

Gotta give some appreciation here. I've been ripping my hair out trying to make a good 3D platformer camera (Following another tutorial), but I kept running into some bug with the rotation where if I pointed the camera up or down, and then rotated it sideways, it'd go all wonky. The camera was looking at and affecting the rotation of a pivot that was on the character btw.

I messed around slightly with the code, still no luck, but I got closer. All I had to do was attach your code onto the pivot, and... Somehow that worked? Not sure how, but thanks a ton you coding genius!

hunterkeps
Автор

best channel EVER!
always straight to the point without bullshit

MrKiar
Автор

Brooo, how did you make it so simple????
You're the best!

wigglyshadow
Автор

needed this for my flight game, lerped movement and rotation makes the aircraft feel heavier :D

mrpotato
Автор

Just dropping by to say thanks, nice one again

opti
Автор

whats your character movement script during this ? how can i make my character turn while moving with the camara's rotation moving independently?

misteridiot
Автор

super cool tutorial, my motion-sick brain is already producing dopamine

RisuNiku
Автор

great work as always, learning different movement methods has been super useful especially since Im working on a follow companion system

MinthZe
Автор

Your way of saying is so fun. Hehe he.

cloverleaf
Автор

Love your vids, they're a big help. Although when I implemented this, my character doesn't stay grounded and can outright fly through the air when advancing forward when looking up, even with a rigidbody with gravity enabled. :P

Franklinsbrother
Автор

Great video, I really needed this one 😎👌

IntroLove
Автор

1:10 This motivates me to do the same.
I’m gonna post and explain the code for a full first person player controller with physics and normalized movement with deltaTime today in the comments of this video. Just gonna clean it up and add some helpful comments to it first...

thedude
Автор

This worked so well for my racing game thanks so much!

Liamallen
Автор

i have i problem with my camera rotation when i move my player camera follow its work when i rotate it and moving is messed up every time

bonse
Автор

Thanks for the tutorial, your videos have been super helpful! Wondering what song plays at the end of this video too, sounds like it would be a banger

MadCyantist
visit shbcf.ru